Unlock the Power of Open Source! The " Linux New " SWAYAM Plus Course is live now and about 2,500 learners have already registered for it.

If you are a registered learner, the forum page is now active. Visit the page and get all your questions answered.

Registering a Character Device Number - English

This is a sample video. To access the full content,
please Login

3365 visits



Outline:

About device file About serial character device files Major and minor numbers of a device Internal representation of device number About fs.h file About alloc_chrdev_region() function Major and Minor macros About Unregister_chrdev_region()function Working of the above functions Compile the driver Display the output of major and minor number of my_device