On Wed, Dec 20, 2000 at 12:46:48PM +0500, [EMAIL PROTECTED] wrote:
>
>Should this thread be moved to programming?
I have not yet subscribed to LI programming. Pardon me for posting this to LIH.
Will soon subscribe from home soon.
>
>In the kernel modules, the major number is indicated while registering the
>device
>
>for ex: register_chrdev(major_number,"my_device",&fops);
>
>The kernel does not differentiate between minor numbers. When any process,
>access a device with the major number my driver registered, the
>corresponding entry point in my driver will be called. It is the driver's
>responsibility to take care of differences in minor number.
In your earlier mail you had specified the following :
alias char-major-81 videodev
It is a module ( videodev.o ). For device files you know the major & minor no.'s by
directory
listing. What about modules. How you know that the major no. of module videodev is 81.
Say
tomorrow I want to use a modules specialix.o how I will know the major no. of this
module so
that I can put it in /etc/modules.conf
>The major number of the hd driver is 3. The minor numbers are 0,1.... etc
>etc. Note that the device entry can have any name, as long as the major
>and minor numbers match.
That's correct. Major & Minor no.'s are mapping to specific devices in the kernel
itself.
Isn't it.
Regards
--
Rajesh Fowkar
----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH