devfs_mk_symlink

Name

devfs_mk_symlink -- 

Synopsis

int devfs_mk_symlink (devfs_handle_t dir, const char * name, unsigned int namelen, unsigned int flags, const char * link, unsigned int linklength, devfs_handle_t * handle, void * info);

Arguments

dir

The handle to the parent devfs directory entry. If this is NULL the new name is relative to the root of the devfs.

name

The name of the entry.

namelen

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.

flags

A set of bitwise-ORed flags (DEVFS_FL_*).

link

The destination name.

linklength

The number of characters in link, not including a NULL terminator. If this is 0, then link must be NULL-terminated and the length is computed internally.

handle

The handle to the symlink entry is written here. This may be NULL.

info

An arbitrary pointer which will be associated with the entry.

Description

Returns 0 on success, else a negative error code is returned.