_devfs_append_entry
Section: Kernel Hacker's Manual (9)
Updated: _devfs_append_entry
Index
Return to Main Contents
NAME
_devfs_append_entry - Append a devfs entry to a directory's child list.
SYNOPSIS
int _devfs_append_entry
(devfs_handle_t dir,
devfs_handle_t de,
int removable,
devfs_handle_t *old_de);
ARGUMENTS
- dir
-
The directory to add to.
- de
-
The devfs entry to append.
- removable
-
If TRUE, increment the count of removable devices for dir.
- old_de
-
If an existing entry exists, it will be written here. This may
be NULL. An implicit devfs_get is performed on this entry.
DESCRIPTION
Append a devfs entry to a directory's list of children, checking first to
see if an entry of the same name exists. The directory will be locked.
The value 0 is returned on success, else a negative error code.
On failure, an implicit devfs_put is performed on de.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 03:51:42 GMT, June 12, 2005