Home
last modified time | relevance | path

Searched refs:getlock (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/lua/src/
H A Dltests.h85 #define getlock(l) cast(struct L_EXTRA*, lua_getextraspace(l)) macro
87 (getlock(l)->lock = 0, getlock(l)->plock = &(getlock(l)->lock))
89 lua_assert(getlock(l)->lock == 1 && getlock(l)->plock == &(getlock(l)->lock))
91 lua_assert(getlock(l1)->plock == getlock(l)->plock)
93 lua_assert(getlock(l)->plock == getlock(l1)->plock)
94 #define lua_lock(l) lua_assert((*getlock(l)->plock)++ == 0)
95 #define lua_unlock(l) lua_assert(--(*getlock(l)->plock) == 0)
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd_lock.h7 enum nlm_stats getlock(nlm4_lockargs *lckarg, struct svc_req *rqstp,
H A Dlock_proc.c530 res.stat.stat = getlock(&arg4, rqstp, LOCK_MON); in nlm_lock_1_svc()
551 res.stat.stat = getlock(&arg4, rqstp, LOCK_ASYNC | LOCK_MON); in nlm_lock_msg_1_svc()
1001 res.stat.stat = (enum nlm4_stats)getlock(arg, rqstp, LOCK_MON | LOCK_V4); in nlm4_lock_4_svc()
1014 res.stat.stat = (enum nlm4_stats)getlock(arg, rqstp, LOCK_MON | LOCK_ASYNC | LOCK_V4); in nlm4_lock_msg_4_svc()
H A Dlockd_lock.c1904 getlock(nlm4_lockargs *lckarg, struct svc_req *rqstp, const int flags) in getlock() function
/freebsd/contrib/lib9p/
H A Dpack.c785 l9p_pu8(msg, &fcall->getlock.type); in l9p_pufcall()
786 l9p_pu64(msg, &fcall->getlock.start); in l9p_pufcall()
787 l9p_pu64(msg, &fcall->getlock.length); in l9p_pufcall()
788 l9p_pu32(msg, &fcall->getlock.proc_id); in l9p_pufcall()
789 r = l9p_pustring(msg, &fcall->getlock.client_id); in l9p_pufcall()
945 free(fcall->getlock.client_id); in l9p_freefcall()
H A Dutils.c1217 fcall->getlock.type, in l9p_describe_fcall()
1218 fcall->getlock.start, fcall->getlock.length, in l9p_describe_fcall()
1219 fcall->getlock.proc_id, fcall->getlock.client_id); in l9p_describe_fcall()
H A Dfcall.h615 struct l9p_f_getlock getlock; member
H A Drequest.c1346 error = be->getlock != NULL ? be->getlock(be->softc, req) : ENOSYS; in l9p_dispatch_tgetlock()
/freebsd/contrib/lib9p/backend/
H A Dbackend.h62 int (*getlock)(void *, struct l9p_request *); member
H A Dfs.c2743 switch (req->lr_req.getlock.type) { in fs_getlock()
2752 req->lr_resp.getlock = req->lr_req.getlock; in fs_getlock()
2753 req->lr_resp.getlock.type = L9PL_LOCK_TYPE_UNLOCK; in fs_getlock()
2754 req->lr_resp.getlock.client_id = strdup(""); /* XXX what should go here? */ in fs_getlock()
3027 backend->getlock = fs_getlock; in l9p_backend_fs_init()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_nat.c977 int error = 0, ret, arg, getlock; in ipf_nat_ioctl() local
1007 getlock = (mode & NAT_LOCKHELD) ? 0 : 1; in ipf_nat_ioctl()
1144 error = ipf_nat_siocaddnat(softc, softn, nt, getlock); in ipf_nat_ioctl()
1176 ipf_nat_siocdelnat(softc, softn, n, getlock); in ipf_nat_ioctl()
1217 if (getlock) { in ipf_nat_ioctl()
1236 if (getlock) { in ipf_nat_ioctl()
1256 if (getlock) { in ipf_nat_ioctl()
1274 if (getlock) { in ipf_nat_ioctl()
1288 if (getlock) { in ipf_nat_ioctl()
1294 if (getlock) { in ipf_nat_ioctl()
[all …]