| Main index | Section 9 | Options |
#include <sys/param.h>
#include <sys/vnode.h>
The arguments are:
| vp | |
| The vnode of the file. | |
| offset | |
| The starting offset of the operation range. | |
| length | |
| The length of the operation range. This must be greater than 0. | |
| flags | |
| The control flags of the operation. This should be set to 0 for now. | |
| ioflag | |
| Directives and hints to be given to the file system. | |
| active_cred | |
| The user credentials of the calling thread. | |
| file_cred | |
| The credentials installed on the file description pointing to the vnode or NOCRED. | |
The ioflag() argument gives directives and hints to the file system. It may include one or more of the following flags:
| IO_NODELOCKED | The vnode was locked before the call. |
| IO_RANGELOCKED | |
| Rangelock was owned around the call. | |
| IO_NOMACCHECK | Skip MAC checking in the call. |
| IO_SYNC | Do I/O synchronously. |
| IO_DIRECT | Attempt to bypass buffer cache. |
*offset and *length are updated to reflect the unprocessed operation range of the call. For a successful completion, *length is updated to be the value 0, and *offset is incremented by the number of bytes zeroed before the end-of-file.
| VN_DEALLOCATE (9) | August 25, 2021 |
| Main index | Section 9 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Never write it in C if you can do it in `awk'; Never do it in `awk' if `sed' can handle it; Never use `sed' when `tr' can do the job; Never invoke `tr' when `cat' is sufficient; Avoid using `cat' whenever possible. |
” |
| — Taylor's Laws of Programming | ||