devfs_handle_t devfs_find_handle(devfs_handle_t dir, const char * name, unsigned int namelen, unsigned int major, unsigned int minor, char type, int traverse_symlinks);
The handle to the parent devfs directory entry. If this is NULL the name is relative to the root of the devfs.
The name of the entry.
The number of characters in name, not including a NULL terminator. If this is 0, then name must be NULL-terminated and the length is computed internally.
The major number. This is used if name is NULL.
The minor number. This is used if name is NULL.
The type of special file to search for. This may be either DEVFS_SPECIAL_CHR or DEVFS_SPECIAL_BLK.
If TRUE then symlink entries in the devfs namespace are traversed. Symlinks pointing out of the devfs namespace will cause a failure. Symlink traversal consumes stack space.
Returns a handle which may later be used in a call to devfs_unregister, devfs_get_flags, or devfs_set_flags. On failure NULL is returned.