Removing an entry
Prev | Chapter 2. Managing procfs entries | Next

## Removing an entry

`void remove_proc_entry(` | const char* | name,
| struct proc_dir_entry* | parent`)`;

Removes the entry `name` in the directory `parent` from the procfs. Entries are removed by their name, not by the struct proc_dir_entry returned by the various create functions. Note that this function doesn't recursively remove entries.

Be sure to free the `data` entry from the struct proc_dir_entry before `remove_proc_entry` is called (that is: if there was some `data` allocated, of course). See the section called “A single call back for many files” for more information on using the `data` entry.

Prev | Up | Next
Creating a directory | Home | Chapter 3. Communicating with userland