.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "_DEVFS_APPEND_ENTRY" "" "06 October 2005" "" ""
.SH NAME
_devfs_append_entry \- Append a devfs entry to a directory's child list.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int _devfs_append_entry (devfs_handle_t \fIdir\fB, devfs_handle_t \fIde\fB, devfs_handle_t * \fIold_de\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdir\fB\fR
The directory to add to.
.TP
\fB\fIde\fB\fR
The devfs entry to append.
.TP
\fB\fIold_de\fB\fR
If an existing entry exists, it will be written here. This may
be NULL\&. An implicit \fBdevfs_get\fR is performed on this entry.
.SH "DESCRIPTION"
.PP
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 \fBdevfs_put\fR is performed on de\&.