Re: How do I choose an arbitrary minor number for my tty device?

From: Greg KH
Date: Tue Nov 30 2010 - 20:02:41 EST


On Tue, Nov 30, 2010 at 01:33:52PM -0600, Timur Tabi wrote:
> Greg KH wrote:
> >>> > > When this function is called, userspace had better know exactly what is
> >>> > > going on as it can get confused due to the lack of uevents happening.
> >> >
> >> > Thanks for the explanation, but I'm just concerned that you'll add a comment
> >> > that says, "don't call this function". A quick grep will show that there are
> >> > users of this function, and we'll have this exact conversation all over again.
> > Care to turn the above into a patch? I'll be glad to apply that as well
>
> One question: why are uevents not happening?

What uevent would describe this? Userspace asked for the rename to
happen, so it better be aware that it did.

We don't want to do a "remove" and then "add" sequence of events, that
would confuse everyone.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/