devfs_generate_path

Name

devfs_generate_path --  Generate a pathname for an entry, relative to the devfs root.

Synopsis

int devfs_generate_path (devfs_handle_t de, char * path, int buflen);

Arguments

de

The devfs entry.

path

The buffer to write the pathname to. The pathname and '\0' terminator will be written at the end of the buffer.

buflen

The length of the buffer.

Description

Returns the offset in the buffer where the pathname starts on success, else a negative error code.