ITP

BCA - UNIX and Shell Programming

What is major and minor number ?

In : BCA Subject : UNIX and Shell Programming

The kernel uses the minor number to figure out which device is being referenced to.
You can either acquire a direct pointer to your device from the kernel or utilise the minor number as an index into a local array of devices, depending on how your driver is designed.
In any case, the kernel has little knowledge about minor numbers other than the fact that they correspond to devices implemented by your driver.

About us

A truly open platform where you may ask questions and get answers. We also provide comprehensive and easy-to-understand answers to question papers.  discover...

Site status

Flag Counter

Privacy Policy

Sitemap