.TH "_devfs_append_entry" 9 "_devfs_append_entry" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME _devfs_append_entry \- Append a devfs entry to a directory's child list. .SH SYNOPSIS .B "int" _devfs_append_entry .BI "(devfs_handle_t " dir "," .BI "devfs_handle_t " de "," .BI "int " removable "," .BI "devfs_handle_t *" old_de ");" .SH ARGUMENTS .IP "dir" 12 The directory to add to. .IP "de" 12 The devfs entry to append. .IP "removable" 12 If TRUE, increment the count of removable devices for dir. .IP "old_de" 12 If an existing entry exists, it will be written here. This may be NULL. An implicit \fBdevfs_get\fP is performed on this entry. .SH "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 \fBdevfs_put\fP is performed on de.