Contents

VNOP_SETXATTR

Set extended file attributes.

Declaration

errno_t VNOP_SETXATTR(vnode_t vp, const char *name, uio_t uio, int options, vfs_context_t ctx);

Parameters

  • vp:

    The vnode to set extended attributes for.

  • name:

    Which property to extract.

  • uio:

    Source information for attribute value.

  • options:

    XATTR_NOSECURITY: bypass security-checking. XATTR_CREATE: set value, fail if exists. XATTR_REPLACE: set value, fail if does not exist.

  • ctx:

    Context to authenticate for setxattr request.

Return Value

0 for success, or an error code.

See Also

Support