Unix and Linux Discussions Tagged with advice |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
15,238 |
AIX |
|
|
|
2 |
1,978 |
Programming |
|
|
|
2 |
2,661 |
What is on Your Mind? |
|
|
|
1 |
2,089 |
What is on Your Mind? |
|
|
|
2 |
2,792 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,642 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
2,152 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,438 |
UNIX for Advanced & Expert Users |
|
|
|
36 |
124,814 |
IP Networking |
|
|
|
2 |
2,215 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,927 |
Shell Programming and Scripting |
|
|
|
2 |
3,239 |
Shell Programming and Scripting |
|
|
|
4 |
3,449 |
What is on Your Mind? |
|
|
|
2 |
3,584 |
Linux |
|
|
|
0 |
893 |
UNIX and Linux RSS News |
|
|
|
17 |
9,496 |
What is on Your Mind? |
|
|
|
14 |
4,847 |
Shell Programming and Scripting |
|
|
|
2 |
2,742 |
Red Hat |
|
|
|
3 |
2,192 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,120 |
Shell Programming and Scripting |
|
|
|
0 |
1,138 |
UNIX and Linux RSS News |
|
|
|
1 |
5,996 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
3,362 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
31,130 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
3,543 |
IP Networking |
|
|
|
3 |
7,003 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,312 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,059 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,024 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,067 |
Cybersecurity |
|
|
|
2 |
5,474 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,873 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,255 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,058 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
36,950 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,544 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,769 |
IP Networking |
|
|
|
2 |
4,408 |
UNIX for Dummies Questions & Answers |
VOP_ADVISE(9) BSD Kernel Developer's Manual VOP_ADVISE(9)
NAME
VOP_ADVISE -- apply advice about use of file data
SYNOPSIS
#include <sys/param.h>
#include <sys/vnode.h>
int
VOP_ADVISE(struct vnode *vp, off_t start, off_t end, int advice);
DESCRIPTION
This call applies advice for a range of a file's data. It is used to implement the posix_fadvise system call.
Its arguments are:
vp The vnode of the file.
start The start of the range of file data.
end The end of the range of file data.
advice The type of operation to apply to the file data. Possible values are:
POSIX_FADV_WILLNEED Initiate an asynchronous read of the file data if it is not already resident.
POSIX_FADV_DONTNEED Decrease the in-memory priority of clean file data or discard clean file data.
If the start and end offsets are both zero, then the operation should be applied to the entire file. Note that this call is advisory only
and may perform the requested operation on a subset of the requested range (including not performing it at all) and still return success.
LOCKS
The file should be unlocked on entry.
RETURN VALUES
Zero is returned if the call is successful, otherwise an appropriate error code is returned.
ERRORS
[EINVAL] An invalid value was given for advice.
SEE ALSO
vnode(9)
BSD
October 3, 2013 BSD