Re: [OT] LDD3 Query

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

 



On Fri, Apr 05, 2013 at 12:17:54PM +0530, Vijay Chauhan wrote:
> Hi,
> 
> I am new to Linux Device Driver and reading LDD3.
> 
> It mentions that the disadvantage of dynamic major number allocation
> is that you can’t create the device nodes in
> advance, because the major number assigned to your module will vary.

That's extremely out of date, all distros now use udev (or mdev) and as
such, dynamic major/minor are fine to use, and recommended.

> To solve this problem, it says that create a script to invoke insmod
> and after calling insmod, reads /proc/devices in order to create the
> special file(s).

Not needed anymore, udev handles this for you.

Hope this helps,

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




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux