devfs_mk_symlink

Name

devfs_mk_symlink -- 

Synopsis

int devfs_mk_symlink (devfs_handle_t dir, const char * name, unsigned int flags, const char * link, 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.

flags

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

link

The destination name.

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.