Control flow from Application to Linux driver

Driver2

This diagram shows, how a application function call (open) control is transfered to the appropriate function (open) in a Linux device driver module.
1. Kernel module is loaded.
1a. Update the kernel run time variables (/proc/devices, /proc/modules).
1b. Create the device file with appropriate type, major and minor number in /dev/ folder.

2. Application is calling the open() function on the device file.
2a. Identify the Device Type, Major, Minor numbers from /dev/ folder (ls -l /dev/devfile).
2b. Identify the Driver modules associated with this device file.
2c. Control transfered to the appropriate open() function in the driver.

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: