RE: kernel oops with extended serial stuff turned on...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jiri,
 
Well, what I did in my drivers was the following:
 
1) Went to TTY_DRIVER_DYNAMIC_DEV.
2) Changed the "name" I use for my ttys from something generic like ttya0, ttyb0, etc,
to a more specific name of "drivername_tty0", "drivername_tty1", etc, etc.
(ie, in this case, isicom_tty0, isicom_tty1, etc)
3) Added the "tty_register_device()" to my driver to register those "extended" names.
4)Created special UDEV rules to look for <drivername>_tty*, and rename them
to something more common, ie, ttya0, ttya1, etc, etc.
 
This still doesn't *truly* fix the problem, because UDEV could still run into conflicts on
the renaming, but at least the problem moves from kernel space to user space...
 
Presumably we could "script" around the duplicate id problem in a UDEV script.
(ie, Maybe if "ttyM0" is already out there, move to "ttyN0" instead.)
 
Forgive me if this email looks a little choppy, I am coming down with the flu,
and don't really feel too well today...
 
Scott
 
________________________________

From: Jiri Slaby [mailto:[email protected]]
Sent: Thu 10/19/2006 4:42 AM
To: Jiri Slaby
Cc: Kilau, Scott; Greg KH; [email protected]; [email protected]; Alan Cox; Andrew Morton
Subject: Re: kernel oops with extended serial stuff turned on...



Jiri Slaby wrote:
> We have a few options:
> - rewrite them to use TTY_DRIVER_DYNAMIC_DEV (I'm going to do this in
> isicom anyway)

(But this won't solve anything if somebody has both "conflicting" cards.)

regards,
--
http://www.fi.muni.cz/~xslaby/            Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8  22A0 32CC 55C3 39D4 7A7E


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux