cl_req_operations Struct Reference
[cl_req]

Transfer request operations definable at every layer. More...

#include <cl_object.h>


Data Fields

int(* cro_prep )(const struct lu_env *env, const struct cl_req_slice *slice)
 Invoked top-to-bottom by cl_req_prep() when transfer formation is complete (all pages are added).
void(* cro_attr_set )(const struct lu_env *env, const struct cl_req_slice *slice, const struct cl_object *obj, struct cl_req_attr *attr, obd_valid flags)
 Called top-to-bottom to fill in oa fields.
void(* cro_completion )(const struct lu_env *env, const struct cl_req_slice *slice, int ioret)
 Called top-to-bottom from cl_req_completion() to notify layers that transfer completed.


Detailed Description

Transfer request operations definable at every layer.

Concurrency: transfer formation engine synchronizes calls to all transfer methods.


Field Documentation

void(* cl_req_operations::cro_attr_set)(const struct lu_env *env, const struct cl_req_slice *slice, const struct cl_object *obj, struct cl_req_attr *attr, obd_valid flags)

Called top-to-bottom to fill in oa fields.

This is called twice with different flags, see bug 10150 and osc_build_req().

Parameters:
obj an object from cl_req which attributes are to be set in oa.
oa struct obdo where attributes are placed
flags oa fields to be filled.

void(* cl_req_operations::cro_completion)(const struct lu_env *env, const struct cl_req_slice *slice, int ioret)

Called top-to-bottom from cl_req_completion() to notify layers that transfer completed.

Has to free all state allocated by cl_device_operations::cdo_req_init().

int(* cl_req_operations::cro_prep)(const struct lu_env *env, const struct cl_req_slice *slice)

Invoked top-to-bottom by cl_req_prep() when transfer formation is complete (all pages are added).

See also:
osc_req_prep()


The documentation for this struct was generated from the following file:
Generated on Mon Apr 12 04:18:21 2010 for Lustre 1.10.0.40-0-g9a80ff7 by doxygen 1.4.7

Contact | About Sun | News | Employment | Privacy | Terms of Use | Trademarks | (C) 2008 Sun Microsystems, Inc.