Contents

vnode_create

Create and initialize a vnode.

Declaration

errno_t vnode_create(uint32_t flavor, uint32_t size, void *data, vnode_t *vpp);

Parameters

  • flavor:

    Should be VNCREATE_FLAVOR.

  • size:

    Size of the struct vnode_fsparam in "data".

  • data:

    Pointer to a struct vnode_fsparam containing initialization information.

  • vpp:

    Pointer to a vnode pointer, to be filled in with newly created vnode.

Return Value

0 for success, error code otherwise.

Discussion

Returns wth an iocount held on the vnode which must eventually be dropped with vnode_put().

See Also

vnode