|
Lines 38-44
Link Here
|
| 38 |
.In sys/param.h |
38 |
.In sys/param.h |
| 39 |
.In sys/vnode.h |
39 |
.In sys/vnode.h |
| 40 |
.Ft int |
40 |
.Ft int |
| 41 |
.Fn VOP_FSYNC "struct vnode *vp" "struct ucred *cred" "int waitfor" "struct thread *td" |
41 |
.Fn VOP_FSYNC "struct vnode *vp" "int waitfor" "struct thread *td" |
| 42 |
.Sh DESCRIPTION |
42 |
.Sh DESCRIPTION |
| 43 |
This call flushes any dirty file system buffers for the file. |
43 |
This call flushes any dirty file system buffers for the file. |
| 44 |
It is used to implement the |
44 |
It is used to implement the |
|
Lines 51-58
Link Here
|
| 51 |
.Bl -tag -width waitfor |
51 |
.Bl -tag -width waitfor |
| 52 |
.It Fa vp |
52 |
.It Fa vp |
| 53 |
The vnode of the file. |
53 |
The vnode of the file. |
| 54 |
.It Fa cred |
|
|
| 55 |
The caller's credentials. |
| 56 |
.It Fa waitfor |
54 |
.It Fa waitfor |
| 57 |
Whether the function should wait for I/O to complete. |
55 |
Whether the function should wait for I/O to complete. |
| 58 |
Possible values are: |
56 |
Possible values are: |
|
Lines 84-90
Link Here
|
| 84 |
.Sh PSEUDOCODE |
82 |
.Sh PSEUDOCODE |
| 85 |
.Bd -literal |
83 |
.Bd -literal |
| 86 |
int |
84 |
int |
| 87 |
vop_fsync(struct vnode *vp, struct ucred *cred, int waitfor, struct thread *td) |
85 |
vop_fsync(struct vnode *vp, int waitfor, struct thread *td) |
| 88 |
{ |
86 |
{ |
| 89 |
struct buf *bp; |
87 |
struct buf *bp; |
| 90 |
struct buf *nbp; |
88 |
struct buf *nbp; |