Lines Matching refs:n

1105 static void seccomp_handle_addfd(struct seccomp_kaddfd *addfd, struct seccomp_knotif *n)  in seccomp_handle_addfd()  argument
1123 n->state = SECCOMP_NOTIFY_SENT; in seccomp_handle_addfd()
1126 n->flags = 0; in seccomp_handle_addfd()
1127 n->error = 0; in seccomp_handle_addfd()
1128 n->val = fd; in seccomp_handle_addfd()
1140 struct seccomp_knotif *n) in should_sleep_killable() argument
1142 return match->wait_killable_recv && n->state == SECCOMP_NOTIFY_SENT; in should_sleep_killable()
1152 struct seccomp_knotif n = {}; in seccomp_do_user_notification() local
1160 n.task = current; in seccomp_do_user_notification()
1161 n.state = SECCOMP_NOTIFY_INIT; in seccomp_do_user_notification()
1162 n.data = sd; in seccomp_do_user_notification()
1163 n.id = seccomp_next_notify_id(match); in seccomp_do_user_notification()
1164 init_completion(&n.ready); in seccomp_do_user_notification()
1165 list_add_tail(&n.list, &match->notif->notifications); in seccomp_do_user_notification()
1166 INIT_LIST_HEAD(&n.addfd); in seccomp_do_user_notification()
1178 bool wait_killable = should_sleep_killable(match, &n); in seccomp_do_user_notification()
1182 err = wait_for_completion_killable(&n.ready); in seccomp_do_user_notification()
1184 err = wait_for_completion_interruptible(&n.ready); in seccomp_do_user_notification()
1192 if (!wait_killable && should_sleep_killable(match, &n)) in seccomp_do_user_notification()
1198 addfd = list_first_entry_or_null(&n.addfd, in seccomp_do_user_notification()
1202 seccomp_handle_addfd(addfd, &n); in seccomp_do_user_notification()
1204 } while (n.state != SECCOMP_NOTIFY_REPLIED); in seccomp_do_user_notification()
1206 ret = n.val; in seccomp_do_user_notification()
1207 err = n.error; in seccomp_do_user_notification()
1208 flags = n.flags; in seccomp_do_user_notification()
1212 list_for_each_entry_safe(addfd, tmp, &n.addfd, list) { in seccomp_do_user_notification()
1230 list_del(&n.list); in seccomp_do_user_notification()