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
nop_accessnop_advlocknop_allocatenop_blktooffnop_blockmapnop_bwritenop_closenop_copyfilenop_createnop_exchangenop_fsyncnop_getattrnop_inactivenop_ioctlnop_linknop_mkdirnop_mknodnop_mmapnop_offtoblknop_opennop_pageinnop_pageoutnop_pathconfnop_readnop_readdirnop_readdirattrnop_readlinknop_reclaimnop_removenop_renamenop_revokenop_rmdirnop_searchfsnop_selectnop_setattrnop_strategynop_symlinknop_whiteoutnop_writeerr_accesserr_advlockerr_allocateerr_blktoofferr_blockmaperr_bwriteerr_closeerr_copyfileerr_createerr_exchangeerr_fsyncerr_getattrerr_inactiveerr_ioctlerr_linkerr_mkdirerr_mknoderr_mmaperr_offtoblkerr_openerr_pageinerr_pageouterr_pathconferr_readerr_readdirerr_readdirattrerr_readlinkerr_reclaimerr_removeerr_renameerr_revokeerr_rmdirerr_searchfserr_selecterr_setattrerr_strategyerr_symlinkerr_whiteouterr_writeadvisory_readadvisory_read_extVNOP_BWRITEVNOP_FSYNCVNOP_GETXATTRVNOP_IOCTLVNOP_READVNOP_SETXATTRVNOP_WRITEcache_entercache_lookupcache_purgecache_purge_negatives