Searched refs:lf (Results 1 – 6 of 6) sorted by relevance
| /xnu-12377.1.9/bsd/kern/ |
| H A D | kern_lockf.c | 445 struct lockf **lf = lock->lf_head; in lf_coalesce_adjacent() local 447 while (*lf != NOLOCKF) { in lf_coalesce_adjacent() 449 if ((*lf == lock) || in lf_coalesce_adjacent() 450 ((*lf)->lf_id != lock->lf_id) || in lf_coalesce_adjacent() 451 ((*lf)->lf_type != lock->lf_type)) { in lf_coalesce_adjacent() 452 lf = &(*lf)->lf_next; in lf_coalesce_adjacent() 460 if (LF_END(*lf) < OFF_MAX && in lf_coalesce_adjacent() 461 (LF_END(*lf) + 1) == lock->lf_start) { in lf_coalesce_adjacent() 462 struct lockf *adjacent = *lf; in lf_coalesce_adjacent() 465 lock->lf_start = (*lf)->lf_start; in lf_coalesce_adjacent() [all …]
|
| H A D | kern_descrip.c | 272 struct flock lf = { in fg_drop() local 279 (void)VNOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_POSIX, &context, NULL); in fg_drop() 356 struct flock lf = { in fg_transfer_filelocks() local 365 (void)VNOP_ADVLOCK(vp, (caddr_t)old_proc, F_TRANSFER, &lf, F_POSIX, &context, NULL); in fg_transfer_filelocks() 373 struct flock lf = { in fg_transfer_filelocks() local 382 (void)VNOP_ADVLOCK(vp, ofd_to_id(fg), F_TRANSFER, &lf, F_OFD_LOCK, &context, NULL); in fg_transfer_filelocks() 5813 struct flock lf; in sys_flock() local 5826 lf.l_whence = SEEK_SET; in sys_flock() 5827 lf.l_start = 0; in sys_flock() 5828 lf.l_len = 0; in sys_flock() [all …]
|
| /xnu-12377.1.9/bsd/nfs/ |
| H A D | nfs_syscalls.c | 433 struct flock lf; in fhopen() local 546 lf.l_whence = SEEK_SET; in fhopen() 547 lf.l_start = 0; in fhopen() 548 lf.l_len = 0; in fhopen() 550 lf.l_type = F_WRLCK; in fhopen() 552 lf.l_type = F_RDLCK; in fhopen() 558 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in fhopen()
|
| /xnu-12377.1.9/bsd/vfs/ |
| H A D | vfs_xattr.c | 2283 struct flock lf = { in open_xattrfile() local 2288 lf.l_type = F_WRLCK; in open_xattrfile() 2290 lf.l_type = F_RDLCK; in open_xattrfile() 2292 error = VNOP_ADVLOCK(xvp, (caddr_t)fg, F_SETLK, &lf, F_FLOCK | F_WAIT, context, NULL); in open_xattrfile() 2382 struct flock lf = { in close_xattrfile() local 2386 (void)VNOP_ADVLOCK(xvp, (caddr_t)xfg, F_UNLCK, &lf, F_FLOCK, in close_xattrfile()
|
| H A D | vfs_vnops.c | 1871 struct flock lf = { in vn_closefile() local 1880 F_UNLCK, &lf, F_FLOCK, ctx, NULL); in vn_closefile() 1885 F_UNLCK, &lf, F_OFD_LOCK, ctx, NULL); in vn_closefile()
|
| H A D | vfs_syscalls.c | 4954 struct flock lf = { in open1() local 4959 lf.l_type = F_WRLCK; in open1() 4961 lf.l_type = F_RDLCK; in open1() 4969 F_SETLK, &lf); in open1() 4974 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in open1() 5139 struct flock lf = { in open1() local 5145 vp, (caddr_t)fp->fp_glob, F_UNLCK, &lf, F_FLOCK, ctx, NULL); in open1()
|