Lines Matching defs:cookie
58 static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie)
71 for (i = 0 ; i < cookie->len ; i++) {
76 sprintf(p, "%02x", cookie->data[i]);
156 dprintk("lockd: check f=%p pd=%d %Ld-%Ld ty=%d cookie=%s\n",
160 nlmdbg_cookie2a(&block->b_call->a_args.cookie));
180 * Find a block with a given NLM cookie.
183 nlmsvc_find_block(struct nlm_cookie *cookie)
188 if (nlm_cookie_match(&block->b_call->a_args.cookie,cookie))
195 dprintk("nlmsvc_find_block(%s): block=%p\n", nlmdbg_cookie2a(cookie), block);
203 * Note: we explicitly set the cookie of the grant reply to that of
205 * should _not_ rely on the callback containing the same cookie as the
212 * GRANTED_RES message by cookie, without having to rely on the client's IP
218 struct nlm_cookie *cookie)
241 nlmclnt_next_cookie(&call->a_args.cookie);
470 struct nlm_cookie *cookie, int reclaim)
491 block = nlmsvc_create_block(rqstp, host, file, lock, cookie);
577 struct nlm_lock *conflock, struct nlm_cookie *cookie)
937 nlmsvc_grant_reply(struct nlm_cookie *cookie, __be32 status)
941 dprintk("grant_reply: looking for cookie %x, s=%d \n",
942 *(unsigned int *)(cookie->data), status);
943 if (!(block = nlmsvc_find_block(cookie)))