_devfs_descend(9)
NAME
_devfs_descend - Descend down a tree using the next com
ponent name.
SYNOPSIS
struct devfs_entry * _devfs_descend (struct devfs_entry *dir, const char *name, int namelen, int *next_pos);
ARGUMENTS
dir The directory to search.
name The component name to search for.
namelen The length of name.
- next_pos The position of the next '/' or ' ' is writ
- ten here.
DESCRIPTION
- Descend into a directory, searching for a component. This
function forms the core of a tree-walking algorithm. The
directory will be locked. The devfs entry corresponding
to the component is returned. If there is no matching
entry, NULL is returned. An implicit devfs_get is per formed on the returned entry.