Function

vnode_setattr

Set vnode attributes.

Declaration

int vnode_setattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx);

Parameters

vp

The vnode whose attributes to set.

vap

Structure containing: 1) A list of attributes to set 2) Space for values for those attributes 3) Space to indicate which attributes were set.

ctx

Context for authentication.

Return Value

0 for success or an error code.

Discussion

Attributes to set are marked with VATTR_SET_ACTIVE and VNODE_ATTR* macros. Attributes successfully set are determined after call with VATTR_IS_SUPPORTED.