Lines Matching refs:n
98 struct watch_notification *n) in post_one_notification() argument
121 len = n->info & WATCH_INFO_LENGTH; in post_one_notification()
123 memcpy(p + offset, n, len); in post_one_notification()
158 const struct watch_notification *n) in filter_watch_notification() argument
162 unsigned int st_index = n->subtype / st_bits; in filter_watch_notification()
163 unsigned int st_bit = 1U << (n->subtype % st_bits); in filter_watch_notification()
166 if (!test_bit(n->type, wf->type_filter)) in filter_watch_notification()
171 if (n->type == wt->type && in filter_watch_notification()
173 (n->info & wt->info_mask) == wt->info_filter) in filter_watch_notification()
194 struct watch_notification *n, in __post_watch_notification() argument
202 if (((n->info & WATCH_INFO_LENGTH) >> WATCH_INFO_LENGTH__SHIFT) == 0) { in __post_watch_notification()
212 n->info &= ~WATCH_INFO_ID; in __post_watch_notification()
213 n->info |= watch->info_id; in __post_watch_notification()
217 if (wf && !filter_watch_notification(wf, n)) in __post_watch_notification()
220 if (security_post_notification(watch->cred, cred, n) < 0) in __post_watch_notification()
224 post_one_notification(wqueue, n); in __post_watch_notification()
534 struct watch_notification_removal n; in remove_watch_from_object() local
559 n.watch.type = WATCH_TYPE_META; in remove_watch_from_object()
560 n.watch.subtype = WATCH_META_REMOVAL_NOTIFICATION; in remove_watch_from_object()
561 n.watch.info = watch->info_id | watch_sizeof(n.watch); in remove_watch_from_object()
562 n.id = id; in remove_watch_from_object()
564 n.watch.info = watch->info_id | watch_sizeof(n); in remove_watch_from_object()
569 post_one_notification(wqueue, &n.watch); in remove_watch_from_object()