Data Fields

xnvfile_lock_ops Struct Reference
[Virtual file services]

Vfile locking operations. More...

Data Fields

int(* get )(struct xnvfile *vfile)
void(* put )(struct xnvfile *vfile)

Detailed Description

Vfile locking operations.

This structure describes the operations to be provided for implementing locking support on vfiles. They apply to both snapshot-driven and regular vfiles.


Field Documentation

int(* xnvfile_lock_ops::get)(struct xnvfile *vfile)

This handler should grab the desired lock.

Parameters:
vfile A pointer to the virtual file which needs locking.
Returns:
zero should be returned if the call succeeds. Otherwise, a negative error code can be returned; upon error, the current vfile operation is aborted, and the user-space caller is passed back the error value.
void(* xnvfile_lock_ops::put)(struct xnvfile *vfile)

This handler should release the lock previously grabbed by the get() handler.

Parameters:
vfile A pointer to the virtual file which currently holds the lock to release.

The documentation for this struct was generated from the following file: