0

I am trying to find the kernel documentation within Linux, in particular the 'devices.txt' file which has a list of driver and device major and minor numbers, i will be needing this while using the mknod command for personal use. im not looking for an online version instead im looking for the actual file in debian.

If anyone has any idea in which directory i can find this file in please let me know.

This is what im looking for looks like: https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/devices.txt

  • You would need the source tree for whatever Ubuntu kernel you are using: apt-get source linux-image-$(uname -r). then the file should be there in Documentation/admin-guide. (Oh, I see an answer was posted while i was doing this comment.) – Doug Smythies Mar 24 '19 at 15:33
  • @DougSmythies Thanks this didnt solve my problem, im looking for the actuall 'devices.txt' file within Linux and not installed using apt – Qasim Mar 25 '19 at 18:01
  • 1
    @Qasim if so the one you have linked to is the file. What are you actually trying to achieve, because this sounds like an X-Y problem to me. – vidarlo Mar 25 '19 at 18:19
  • @vidarlo well basically im pretty new to Linux and im learning and im learning to use the 'mknod' command which enables users to make special files i.e character or block files, in order for me to do this i will need a list of all the major and minor numbers which appropriately correspond to device drivers (Major number) and minor number etc. so thats what im trying to achieve. – Qasim Mar 25 '19 at 18:23
  • Then the file you found and linked to will do just fine. And there's almost zero reason to know how to use mknod. I think I last used it in Redhat 5.2 - twenty years ago. IMHO it's absolutely no reason what so ever to know it as a normal user - it's more useful to know how udevd works. – vidarlo Mar 25 '19 at 18:34
1

You can use the list you found. It's part of the linux-source package, but should be identical to the one you linked.

Devices are managed by the Linux kernel, which is very similar in all distributions.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.