Main index | Section 9 | Options |
#include <sys/param.h>
#include <sys/vnode.h>
Its arguments are:
vp | |
A pointer to the vnode whose buffers will be invalidated. | |
flags | |
The only supported flag is V_SAVE and it indicates that dirty buffers should be synced with the disk. | |
cred | |
The user credentials that are used to VOP_FSYNC(9) buffers if V_SAVE is set. | |
slpflag | |
The slp flag that will be used in the priority of any sleeps in the function. | |
slptimeo | |
The timeout for any sleeps in the function. | |
Giant must be held by prior to the call and remains locked upon return.
vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY); error = vinvalbuf(devvp, V_SAVE, cred, 0, 0); VOP_UNLOCK(devvp, 0); if (error) return (error);
[ENOSPC] | |
The file system is full. (With V_SAVE) | |
[EDQUOT] | |
Disc quota exceeded. (With V_SAVE) | |
[EWOULDBLOCK] | |
Sleep operation timed out. (See slptimeo) | |
[ERESTART] | |
A signal needs to be delivered and the system call should be restarted. (With PCATCH set in slpflag) | |
[EINTR] | |
The system has been interrupted by a signal. (With PCATCH set in slpflag) | |
VINVALBUF (9) | October 20, 2008 |
Main index | Section 9 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | F U cn rd dis U mst uz Unix. | ” |