_devfs_find_entry(9)

NAME

_devfs_find_entry - Find a devfs entry.

SYNOPSIS

struct  devfs_entry  *  _devfs_find_entry  (devfs_handle_t
dir, const char *name, unsigned int  major,  unsigned  int
minor, char type, int traverse_symlink);

ARGUMENTS

dir The handle to the parent devfs directory
entry. If this is NULL the name is relative to
the root of the devfs.
name The name of the entry. This may be NULL.
major The major number. This is used if lookup by
name fails.
minor The minor number. This is used if lookup by
name fails.
type The type of special file to search for. This
may be either DEVFS_SPECIAL_CHR or DEVFS_SPE
CIAL_BLK.
traverse_symlink
If TRUE then symbolic links are traversed.

NOTE

If major and minor are both 0, searching by major and
minor numbers is disabled.

DESCRIPTION

Returns the devfs_entry pointer on success, else NULL. An
implicit devfs_get is performed.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout