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

Re: char-major-6



On Thu, Sep 12, 2002 at 08:13:30PM -0400, Daniel Barclay wrote:
> Where is it defined in the kernel that character major device number 6 is 
> parallel port support?  

In include/linux/major.h.

> - Is that definition only within the parallel-port support module?  
> - Is that definition known only once the module is loaded?

No, it's hard-coded and static.

> - Can the kernel (or the module loader) be informed about the
>   definition (the mapping from the number to the module name)
>   so that that module can be loaded when the device is accessed?
>   If so, how?

'alias char-major-6 lp' in /etc/modutils/aliases, I believe, then run
update-modules.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: