Lines Matching defs:nlmid

117  *	2. map nlmid to index i of rep.states
546 int nlmid;
660 nlmid = GETNLMID(lock_request->l_flock.l_sysid);
661 ASSERT(nlmid <= nlm_status_size && nlmid >= 0);
666 * NLM server making the request, add its nlmid
670 nlmid)) {
671 FLK_REGISTRY_ADD_NLMID(nlm_reg_status, nlmid);
673 nlmid)) {
2492 cl_flk_has_remote_locks_for_nlmid(vnode_t *vp, int nlmid)
2521 * If NLM server request _and_ nlmid of lock matches
2522 * nlmid of argument, then we've found a remote lock.
2524 if (IS_LOCKMGR(lock) && nlmid == lock_nlmid) {
2540 * If NLM server request _and_ nlmid of lock matches
2541 * nlmid of argument, then we've found a remote lock.
2543 if (IS_LOCKMGR(lock) && nlmid == lock_nlmid) {
2714 * Requires: "sysid" is a pair [nlmid, sysid]. The lower half is 16-bit
3458 * Requires: "nlmid" must be >= 1 and <= clconf_maximum_nodeid().
3459 * Effects: Set the state of the NLM server identified by "nlmid"
3461 * Raises exception no_such_nlm if "nlmid" doesn't identify a known
3475 * nlmid (IN): id uniquely identifying an NLM server
3476 * nlm_state (IN): NLM server state to change "nlmid" to
3479 cl_flk_set_nlm_status(int nlmid, flk_nlm_status_t nlm_state)
3503 ASSERT(nlmid <= nlm_status_size && nlmid >= 0);
3506 if (FLK_REGISTRY_IS_NLM_UNKNOWN(nlm_reg_status, nlmid)) {
3508 * If the NLM server "nlmid" is unknown in the NLM registry,
3511 FLK_REGISTRY_CHANGE_NLM_STATE(nlm_reg_status, nlmid,
3515 * Change the state of the NLM server identified by "nlmid"
3518 FLK_REGISTRY_CHANGE_NLM_STATE(nlm_reg_status, nlmid,
3550 * the NLM server identified by "nlmid" to NLM_UP.
3552 cl_flk_change_nlm_state_all_locks(nlmid, FLK_NLM_UP);
3558 * by "nlmid." Note that eventually all woken threads will
3564 cl_flk_wakeup_sleeping_nlm_locks(nlmid);
3570 * identified by "nlmid."
3572 cl_flk_unlock_nlm_granted(nlmid);
3827 cl_flk_change_nlm_state_all_locks(int nlmid, flk_nlm_status_t nlm_state)
3834 * the nlmid is the same as the routine argument then
3840 * the nlmid is the same as the routine argument then
3869 * If NLM server request AND nlmid of lock matches
3870 * nlmid of argument, then set the NLM state of the
3873 if (IS_LOCKMGR(lock) && nlmid == lock_nlmid) {
3887 * If NLM server request AND nlmid of lock matches
3888 * nlmid of argument, then set the NLM state of the
3891 if (IS_LOCKMGR(lock) && nlmid == lock_nlmid) {
3901 * Requires: "nlmid" >= 1 and <= clconf_maximum_nodeid().
3903 * identified by "nlmid." Poke those lock requests.
3906 cl_flk_wakeup_sleeping_nlm_locks(int nlmid)
3928 * If NLM server request _and_ nlmid of lock matches
3929 * nlmid of argument, then set the NLM state of the
3937 if (nlmid == lock_nlmid) {
3949 * Requires: "nlmid" >= 1 and <= clconf_maximum_nodeid()
3951 * NLM server identified by "nlmid" and release them.
3954 cl_flk_unlock_nlm_granted(int nlmid)
3978 * If it's an NLM server request _and_ nlmid of
3979 * the lock matches nlmid of argument, then
3989 if (nlmid == lock_nlmid) {
4256 cl_flk_change_nlm_state_to_unknown(int nlmid)
4275 ASSERT(nlmid <= nlm_status_size && nlmid >= 0);
4277 FLK_REGISTRY_CHANGE_NLM_STATE(nlm_reg_status, nlmid, FLK_NLM_UNKNOWN);