Home
last modified time | relevance | path

Searched refs:lf (Results 1 – 6 of 6) sorted by relevance

/xnu-10063.141.1/bsd/kern/
H A Dkern_lockf.c445 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 Dkern_descrip.c248 struct flock lf = { in fg_drop() local
255 (void)VNOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_POSIX, &context, NULL); in fg_drop()
332 struct flock lf = { in fg_transfer_filelocks() local
341 (void)VNOP_ADVLOCK(vp, (caddr_t)old_proc, F_TRANSFER, &lf, F_POSIX, &context, NULL); in fg_transfer_filelocks()
349 struct flock lf = { in fg_transfer_filelocks() local
358 (void)VNOP_ADVLOCK(vp, ofd_to_id(fg), F_TRANSFER, &lf, F_OFD_LOCK, &context, NULL); in fg_transfer_filelocks()
5730 struct flock lf; in sys_flock() local
5743 lf.l_whence = SEEK_SET; in sys_flock()
5744 lf.l_start = 0; in sys_flock()
5745 lf.l_len = 0; in sys_flock()
[all …]
/xnu-10063.141.1/bsd/nfs/
H A Dnfs_syscalls.c431 struct flock lf; in fhopen() local
544 lf.l_whence = SEEK_SET; in fhopen()
545 lf.l_start = 0; in fhopen()
546 lf.l_len = 0; in fhopen()
548 lf.l_type = F_WRLCK; in fhopen()
550 lf.l_type = F_RDLCK; in fhopen()
556 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in fhopen()
/xnu-10063.141.1/bsd/vfs/
H A Dvfs_xattr.c3421 struct flock lf; in lock_xattrfile() local
3424 lf.l_whence = SEEK_SET; in lock_xattrfile()
3425 lf.l_start = 0; in lock_xattrfile()
3426 lf.l_len = 0; in lock_xattrfile()
3427 lf.l_type = locktype; /* F_WRLCK or F_RDLCK */ in lock_xattrfile()
3429 error = VNOP_ADVLOCK(xvp, (caddr_t)xvp, F_SETLK, &lf, F_FLOCK | F_WAIT, context, NULL); in lock_xattrfile()
3436 struct flock lf; in unlock_xattrfile() local
3439 lf.l_whence = SEEK_SET; in unlock_xattrfile()
3440 lf.l_start = 0; in unlock_xattrfile()
3441 lf.l_len = 0; in unlock_xattrfile()
[all …]
H A Dvfs_vnops.c1813 struct flock lf = { in vn_closefile() local
1822 F_UNLCK, &lf, F_FLOCK, ctx, NULL); in vn_closefile()
1827 F_UNLCK, &lf, F_OFD_LOCK, ctx, NULL); in vn_closefile()
H A Dvfs_syscalls.c4687 struct flock lf = { in open1() local
4692 lf.l_type = F_WRLCK; in open1()
4694 lf.l_type = F_RDLCK; in open1()
4702 F_SETLK, &lf); in open1()
4707 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in open1()
4868 struct flock lf = { in open1() local
4874 vp, (caddr_t)fp->fp_glob, F_UNLCK, &lf, F_FLOCK, ctx, NULL); in open1()