ipmi0 device node

Jakub Bogusz qboosh at pld-linux.org
Tue Mar 1 18:11:36 CET 2005


On Tue, Mar 01, 2005 at 06:05:17PM +0200, Elan Ruusamäe wrote:
> On Tuesday 01 March 2005 17:55, Jakub Bogusz wrote:
> > On Tue, Mar 01, 2005 at 05:45:47PM +0200, Elan Ruusamäe wrote:
> > > also, is this really proper?
> > > # l /dev/ipmi0
> > > crw-------  1 root root 254, 0 2005-01-08 06:33 /dev/ipmi0
> > >
> > > since 254 belongs to devfs:
> > > # grep 254 /proc/devices
> > > 254 devfs
> >
> > $ grep 254 /proc/devices
> > 254 aac
> > $ ls -l /dev/afa0
> > crw-------  1 root root 254, 0 2005-02-22 11:31 /dev/afa0
> >
> > It seems to be dynamically assigned...
> dynamically?
> 
> # rpm -qf /dev/ipmi0
> dev-2.9.0-15
> 
> and i have no udev or active devfs, that could do it dynamically.

I mean device numbers to modules, not devices themselves.
I created /dev/afa0 manually basing on /proc/devices.


Let's use the source...
In case of aacraid it's (linux/drivers/scsi/aacraid/linit.c):

        aac_cfg_major = register_chrdev( 0, "aac", &aac_cfg_fops);

and (in register_chrdev(), linux/fs/char_dev.c) major==0 means last
unused char major less than 255.


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




More information about the pld-devel-en mailing list