Kernel Loadable Modules

Kernel Loadable Modules - Kernel Loadable Modules V-Nodes...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Kernel Loadable Modules
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
V-Nodes V-Nodes or also called “Virtual Nodes” is the abstract data structure used to represent a device/files in the UNIX kernel A V-Node has the following methods: Open Close Read Write Ioctl (Any functionality that is not of the above) The v-node is a struct that contains pointers to functions to the methods indicated above.
Background image of page 2
V-Nodes When a device is attached to the OS, a V- Node is constructed for the device. The device driver will fill-up the function pointers table Also files are abstracted using v-nodes.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
/dev In UNIX the devices have also their own file system, in /dev. Example: /dev/tty0 (Terminal) /dev/sda1 (Hard Drive) You can do direct operations on the devices by opening this files directly.
Background image of page 4
Some versions of UNIX such as Solaris and Linux have a special file system called /proc that exposes the different parameters and data structures of the OS /proc contains a directory for every process in the system. Inside each directory there is a file or directory
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2012 for the course CS 354 taught by Professor Staff during the Fall '08 term at Purdue.

Page1 / 13

Kernel Loadable Modules - Kernel Loadable Modules V-Nodes...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online