Home
last modified time | relevance | path

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

/xnu-8792.61.2/bsd/kern/
H A Dkern_lockf.c448 struct lockf **lf = lock->lf_head; in lf_coalesce_adjacent() local
450 while (*lf != NOLOCKF) { in lf_coalesce_adjacent()
452 if ((*lf == lock) || in lf_coalesce_adjacent()
453 ((*lf)->lf_id != lock->lf_id) || in lf_coalesce_adjacent()
454 ((*lf)->lf_type != lock->lf_type)) { in lf_coalesce_adjacent()
455 lf = &(*lf)->lf_next; in lf_coalesce_adjacent()
463 if (LF_END(*lf) < OFF_MAX && in lf_coalesce_adjacent()
464 (LF_END(*lf) + 1) == lock->lf_start) { in lf_coalesce_adjacent()
465 struct lockf *adjacent = *lf; in lf_coalesce_adjacent()
468 lock->lf_start = (*lf)->lf_start; in lf_coalesce_adjacent()
[all …]
H A Dkern_descrip.c267 struct flock lf = { in fg_drop() local
274 (void)VNOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_POSIX, &context, NULL); in fg_drop()
351 struct flock lf = { in fg_transfer_filelocks() local
360 (void)VNOP_ADVLOCK(vp, (caddr_t)old_proc, F_TRANSFER, &lf, F_POSIX, &context, NULL); in fg_transfer_filelocks()
368 struct flock lf = { in fg_transfer_filelocks() local
377 (void)VNOP_ADVLOCK(vp, (caddr_t)fg, F_TRANSFER, &lf, F_OFD_LOCK, &context, NULL); in fg_transfer_filelocks()
5672 struct flock lf; in sys_flock() local
5685 lf.l_whence = SEEK_SET; in sys_flock()
5686 lf.l_start = 0; in sys_flock()
5687 lf.l_len = 0; in sys_flock()
[all …]
/xnu-8792.61.2/bsd/nfs/
H A Dnfs_syscalls.c398 struct flock lf; in fhopen() local
511 lf.l_whence = SEEK_SET; in fhopen()
512 lf.l_start = 0; in fhopen()
513 lf.l_len = 0; in fhopen()
515 lf.l_type = F_WRLCK; in fhopen()
517 lf.l_type = F_RDLCK; in fhopen()
523 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in fhopen()
/xnu-8792.61.2/bsd/vfs/
H A Dvfs_xattr.c3427 struct flock lf; in lock_xattrfile() local
3430 lf.l_whence = SEEK_SET; in lock_xattrfile()
3431 lf.l_start = 0; in lock_xattrfile()
3432 lf.l_len = 0; in lock_xattrfile()
3433 lf.l_type = locktype; /* F_WRLCK or F_RDLCK */ in lock_xattrfile()
3435 error = VNOP_ADVLOCK(xvp, (caddr_t)xvp, F_SETLK, &lf, F_FLOCK | F_WAIT, context, NULL); in lock_xattrfile()
3442 struct flock lf; in unlock_xattrfile() local
3445 lf.l_whence = SEEK_SET; in unlock_xattrfile()
3446 lf.l_start = 0; in unlock_xattrfile()
3447 lf.l_len = 0; in unlock_xattrfile()
[all …]
H A Dvfs_vnops.c1825 struct flock lf = { in vn_closefile() local
1834 F_UNLCK, &lf, F_FLOCK, ctx, NULL); in vn_closefile()
1839 F_UNLCK, &lf, F_OFD_LOCK, ctx, NULL); in vn_closefile()
H A Dvfs_syscalls.c4605 struct flock lf = { in open1() local
4610 lf.l_type = F_WRLCK; in open1()
4612 lf.l_type = F_RDLCK; in open1()
4620 F_SETLK, &lf); in open1()
4625 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->fp_glob, F_SETLK, &lf, type, ctx, NULL))) { in open1()
4783 struct flock lf = { in open1() local
4789 vp, (caddr_t)fp->fp_glob, F_UNLCK, &lf, F_FLOCK, ctx, NULL); in open1()