* [QUESTION/PROPOSAL] udev (fwd)
@ 2004-03-03 19:27 Grzegorz Kulewski
2004-03-03 19:40 ` Tim Hockin
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Grzegorz Kulewski @ 2004-03-03 19:27 UTC (permalink / raw)
To: linux-hotplug-devel; +Cc: greg, linux-kernel
[PLEASE CC LKML or me because I am not subscribed to LHD!]
Greg asked for it, so here it is:
Question:
If I understand well, currently, when kernel detects new device, it
creates all important files in /sys for it, excluding device file.
So, (sorry if it was asked 100000000 times...
... but) why when kernel detects new device or module is loaded, no device
file in sysfs is created? The device files in /dev would be only links to
these in /sys.
This way we could stop care about major/minor numbers and leave it to sysfs...
And it maybe could decrease the possible races related to udev because it
would only create or remove links to files in /sys.
Programs will be able to easily find, for what device and where located in
system (buses, etc.) the device file in /dev is - with readlink.
And it should make the entire process more clear.
What You think about it?
thanks and sorry for my english
Grzegorz Kulewski
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [QUESTION/PROPOSAL] udev (fwd)
2004-03-03 19:27 [QUESTION/PROPOSAL] udev (fwd) Grzegorz Kulewski
@ 2004-03-03 19:40 ` Tim Hockin
2004-03-03 20:51 ` Grzegorz Kulewski
2004-03-03 19:41 ` Chris Friesen
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Tim Hockin @ 2004-03-03 19:40 UTC (permalink / raw)
To: Grzegorz Kulewski; +Cc: linux-hotplug-devel, greg, linux-kernel
On Wed, Mar 03, 2004 at 08:27:17PM +0100, Grzegorz Kulewski wrote:
> So, (sorry if it was asked 100000000 times...
it has been
> ... but) why when kernel detects new device or module is loaded, no device
> file in sysfs is created? The device files in /dev would be only links to
> these in /sys.
What mode should be applied to these files? That alone is enough to make
one stop and reconsider the idea.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [QUESTION/PROPOSAL] udev (fwd)
2004-03-03 19:27 [QUESTION/PROPOSAL] udev (fwd) Grzegorz Kulewski
2004-03-03 19:40 ` Tim Hockin
@ 2004-03-03 19:41 ` Chris Friesen
2004-03-03 20:04 ` Felipe Alfaro Solana
2004-03-03 21:08 ` Greg KH
3 siblings, 0 replies; 7+ messages in thread
From: Chris Friesen @ 2004-03-03 19:41 UTC (permalink / raw)
To: Grzegorz Kulewski; +Cc: linux-hotplug-devel, greg, linux-kernel
Grzegorz Kulewski wrote:
> What You think about it?
I think you should use google before posting here.
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [QUESTION/PROPOSAL] udev (fwd)
2004-03-03 19:27 [QUESTION/PROPOSAL] udev (fwd) Grzegorz Kulewski
2004-03-03 19:40 ` Tim Hockin
2004-03-03 19:41 ` Chris Friesen
@ 2004-03-03 20:04 ` Felipe Alfaro Solana
2004-03-03 21:08 ` Greg KH
3 siblings, 0 replies; 7+ messages in thread
From: Felipe Alfaro Solana @ 2004-03-03 20:04 UTC (permalink / raw)
To: Grzegorz Kulewski; +Cc: linux-hotplug-devel, greg, linux-kernel
On Wed, 2004-03-03 at 20:27, Grzegorz Kulewski wrote:
> If I understand well, currently, when kernel detects new device, it
> creates all important files in /sys for it, excluding device file.
>
> So, (sorry if it was asked 100000000 times...
> ... but) why when kernel detects new device or module is loaded, no device
> file in sysfs is created? The device files in /dev would be only links to
> these in /sys.
>
> This way we could stop care about major/minor numbers and leave it to sysfs...
> And it maybe could decrease the possible races related to udev because it
> would only create or remove links to files in /sys.
>
> Programs will be able to easily find, for what device and where located in
> system (buses, etc.) the device file in /dev is - with readlink.
>
> And it should make the entire process more clear.
This is more or less how Solaris works... In Solaris, /dev entries are
just symlinks to entries under the /devices tree which is much like
/sys: a tree-like structure which is composed of buses, devices et all.
This is a feature I've always liked from Solaris.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [QUESTION/PROPOSAL] udev (fwd)
2004-03-03 19:40 ` Tim Hockin
@ 2004-03-03 20:51 ` Grzegorz Kulewski
2004-03-03 22:10 ` Tim Hockin
0 siblings, 1 reply; 7+ messages in thread
From: Grzegorz Kulewski @ 2004-03-03 20:51 UTC (permalink / raw)
To: Tim Hockin; +Cc: linux-hotplug-devel, greg, linux-kernel
On Wed, 3 Mar 2004, Tim Hockin wrote:
> On Wed, Mar 03, 2004 at 08:27:17PM +0100, Grzegorz Kulewski wrote:
> > So, (sorry if it was asked 100000000 times...
>
> it has been
>
> > ... but) why when kernel detects new device or module is loaded, no device
> > file in sysfs is created? The device files in /dev would be only links to
> > these in /sys.
>
> What mode should be applied to these files? That alone is enough to make
> one stop and reconsider the idea.
For example 000 - no access for nobody, udev can change it if configured
to do so.
Grzegorz
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [QUESTION/PROPOSAL] udev (fwd)
2004-03-03 19:27 [QUESTION/PROPOSAL] udev (fwd) Grzegorz Kulewski
` (2 preceding siblings ...)
2004-03-03 20:04 ` Felipe Alfaro Solana
@ 2004-03-03 21:08 ` Greg KH
3 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2004-03-03 21:08 UTC (permalink / raw)
To: Grzegorz Kulewski; +Cc: linux-hotplug-devel, linux-kernel
On Wed, Mar 03, 2004 at 08:27:17PM +0100, Grzegorz Kulewski wrote:
> [PLEASE CC LKML or me because I am not subscribed to LHD!]
>
> Greg asked for it, so here it is:
Hm, looks like you got my email address wrong though :(
> So, (sorry if it was asked 100000000 times...
It has been, please search the archives first.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [QUESTION/PROPOSAL] udev (fwd)
2004-03-03 20:51 ` Grzegorz Kulewski
@ 2004-03-03 22:10 ` Tim Hockin
0 siblings, 0 replies; 7+ messages in thread
From: Tim Hockin @ 2004-03-03 22:10 UTC (permalink / raw)
To: Grzegorz Kulewski; +Cc: linux-hotplug-devel, greg, linux-kernel
On Wed, Mar 03, 2004 at 09:51:59PM +0100, Grzegorz Kulewski wrote:
> > What mode should be applied to these files? That alone is enough to make
> > one stop and reconsider the idea.
>
> For example 000 - no access for nobody, udev can change it if configured
> to do so.
I don't know that sysfs has code to handle changing modes. And in the end,
what does it buy you?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-03-03 22:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-03 19:27 [QUESTION/PROPOSAL] udev (fwd) Grzegorz Kulewski
2004-03-03 19:40 ` Tim Hockin
2004-03-03 20:51 ` Grzegorz Kulewski
2004-03-03 22:10 ` Tim Hockin
2004-03-03 19:41 ` Chris Friesen
2004-03-03 20:04 ` Felipe Alfaro Solana
2004-03-03 21:08 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox