_devfs_append_entry(9)

NAME

_devfs_append_entry - Append a devfs entry to a direc
tory's child list.

SYNOPSIS

int _devfs_append_entry  (devfs_handle_t  dir,  devfs_han
dle_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 writ
ten 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.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout