Vfile locking operations .
More...
|
int(* | get )(struct xnvfile *vfile) |
| This handler should grab the desired lock. More...
|
|
void(* | put )(struct xnvfile *vfile) |
| This handler should release the lock previously grabbed by the get() handler. More...
|
|
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.
◆ get
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.
◆ put
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: