Contents

VNOP_STRATEGY

Initiate I/O on a file (both read and write).

Declaration

errno_t VNOP_STRATEGY(struct buf *bp);

Parameters

  • bp:

    Complete specificiation of requested I/O: region of data involved, whether request is for read or write, and so on.

Return Value

0 for success, else an error code.

Discussion

A filesystem strategy routine takes a buffer, performs whatever manipulations are necessary for passing the I/O request down to the device layer, and calls the appropriate device's strategy routine. Most filesystems should just call buf_strategy() with "bp" as the argument.

See Also

Support