Managing proc Entries

Before the proc filesystem can be put to meaningful use, it must be filled with entries containing data. Several auxiliary routines are provided to add files, create directories, and so on, in order to make this job as easy as possible for the remaining kernel sections. These routines are discussed below.

The fact that new proc entries can be easily generated should not disguise the fact that it is not accepted practice to use code to do this. Nevertheless, the simple, lean interface can be very useful for opening up a communication channel for test purposes between kernel and userspace with minimum effort.

I also discuss methods used by the kernel to scan the tree of all registered proc entries to find required information.

Continue reading here: Creating and Registering Entries

Was this article helpful?

0 0