Contents

vnode_waitforwrites

Wait for the number of pending writes on a vnode to drop below a target.

Declaration

int vnode_waitforwrites(vnode_t vp, int output_target, int slpflag, int slptimeout, const char *msg);

Parameters

  • vp:

    The vnode to monitor.

  • output_target:

    Max pending write count with which to return.

  • slpflag:

    Flags for msleep().

  • slptimeout:

    Frequency with which to force a check for completion; increments of 10 ms.

  • msg:

    String to pass msleep() .

Return Value

0 for success, or an error value from msleep().

See Also

vnode