VOP_READLINK(9freebsd)

VOP_READLINK9freebsd

Read the target of a symbolic link

Usage

#include <sys/param.h>

#include <sys/vnode.h>

#include <sys/uio.h>

int

VOP_READLINK(struct vnode *vp, struct uio *uio, struct ucred *cred);

Overview

This reads the target pathname of a symbolic link

vp

The vnode of the symlink.

uio

The location of the data to be read or written.

cred

The credentials of the caller.

Locks

The vnode should be locked on entry and will still be locked on exit.

Return values

Zero is returned on success, otherwise an error code is returned.

Errors

[EIO]

A read error occurred while reading the contents of the symlink.

[EINTEGRITY]

Corrupted data was detected while reading the contents of the symlink.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Authors

This manual page was written by Doug Rabson.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.