• Home
  • Raw
  • Download

Lines Matching refs:n

1056 static void seccomp_handle_addfd(struct seccomp_kaddfd *addfd, struct seccomp_knotif *n)  in seccomp_handle_addfd()  argument
1074 n->state = SECCOMP_NOTIFY_SENT; in seccomp_handle_addfd()
1077 n->flags = 0; in seccomp_handle_addfd()
1078 n->error = 0; in seccomp_handle_addfd()
1079 n->val = fd; in seccomp_handle_addfd()
1091 struct seccomp_knotif *n) in should_sleep_killable() argument
1093 return match->wait_killable_recv && n->state == SECCOMP_NOTIFY_SENT; in should_sleep_killable()
1103 struct seccomp_knotif n = {}; in seccomp_do_user_notification() local
1111 n.task = current; in seccomp_do_user_notification()
1112 n.state = SECCOMP_NOTIFY_INIT; in seccomp_do_user_notification()
1113 n.data = sd; in seccomp_do_user_notification()
1114 n.id = seccomp_next_notify_id(match); in seccomp_do_user_notification()
1115 init_completion(&n.ready); in seccomp_do_user_notification()
1116 list_add_tail(&n.list, &match->notif->notifications); in seccomp_do_user_notification()
1117 INIT_LIST_HEAD(&n.addfd); in seccomp_do_user_notification()
1126 bool wait_killable = should_sleep_killable(match, &n); in seccomp_do_user_notification()
1130 err = wait_for_completion_killable(&n.ready); in seccomp_do_user_notification()
1132 err = wait_for_completion_interruptible(&n.ready); in seccomp_do_user_notification()
1140 if (!wait_killable && should_sleep_killable(match, &n)) in seccomp_do_user_notification()
1146 addfd = list_first_entry_or_null(&n.addfd, in seccomp_do_user_notification()
1150 seccomp_handle_addfd(addfd, &n); in seccomp_do_user_notification()
1152 } while (n.state != SECCOMP_NOTIFY_REPLIED); in seccomp_do_user_notification()
1154 ret = n.val; in seccomp_do_user_notification()
1155 err = n.error; in seccomp_do_user_notification()
1156 flags = n.flags; in seccomp_do_user_notification()
1160 list_for_each_entry_safe(addfd, tmp, &n.addfd, list) { in seccomp_do_user_notification()
1178 list_del(&n.list); in seccomp_do_user_notification()