.TH "_devfs_descend" 9 "_devfs_descend" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME _devfs_descend \- Descend down a tree using the next component name. .SH SYNOPSIS .B "struct devfs_entry *" _devfs_descend .BI "(struct devfs_entry *" dir "," .BI "const char *" name "," .BI "int " namelen "," .BI "int *" next_pos ");" .SH ARGUMENTS .IP "dir" 12 The directory to search. .IP "name" 12 The component name to search for. .IP "namelen" 12 The length of name. .IP "next_pos" 12 The position of the next '/' or '\0' is written here. .SH "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 \fBdevfs_get\fP is performed on the returned entry.