• Home
  • Raw
  • Download

Lines Matching refs:event

147 static inline void fanotify_init_event(struct fanotify_event *event,  in fanotify_init_event()  argument
150 fsnotify_init_event(&event->fse, id); in fanotify_init_event()
151 event->mask = mask; in fanotify_init_event()
152 event->pid = NULL; in fanotify_init_event()
164 FANOTIFY_FE(struct fanotify_event *event) in FANOTIFY_FE() argument
166 return container_of(event, struct fanotify_fid_event, fae); in FANOTIFY_FE()
176 FANOTIFY_NE(struct fanotify_event *event) in FANOTIFY_NE() argument
178 return container_of(event, struct fanotify_name_event, fae); in FANOTIFY_NE()
181 static inline __kernel_fsid_t *fanotify_event_fsid(struct fanotify_event *event) in fanotify_event_fsid() argument
183 if (event->type == FANOTIFY_EVENT_TYPE_FID) in fanotify_event_fsid()
184 return &FANOTIFY_FE(event)->fsid; in fanotify_event_fsid()
185 else if (event->type == FANOTIFY_EVENT_TYPE_FID_NAME) in fanotify_event_fsid()
186 return &FANOTIFY_NE(event)->fsid; in fanotify_event_fsid()
192 struct fanotify_event *event) in fanotify_event_object_fh() argument
194 if (event->type == FANOTIFY_EVENT_TYPE_FID) in fanotify_event_object_fh()
195 return &FANOTIFY_FE(event)->object_fh; in fanotify_event_object_fh()
196 else if (event->type == FANOTIFY_EVENT_TYPE_FID_NAME) in fanotify_event_object_fh()
197 return fanotify_info_file_fh(&FANOTIFY_NE(event)->info); in fanotify_event_object_fh()
203 struct fanotify_event *event) in fanotify_event_info() argument
205 if (event->type == FANOTIFY_EVENT_TYPE_FID_NAME) in fanotify_event_info()
206 return &FANOTIFY_NE(event)->info; in fanotify_event_info()
211 static inline int fanotify_event_object_fh_len(struct fanotify_event *event) in fanotify_event_object_fh_len() argument
213 struct fanotify_info *info = fanotify_event_info(event); in fanotify_event_object_fh_len()
214 struct fanotify_fh *fh = fanotify_event_object_fh(event); in fanotify_event_object_fh_len()
222 static inline int fanotify_event_dir_fh_len(struct fanotify_event *event) in fanotify_event_dir_fh_len() argument
224 struct fanotify_info *info = fanotify_event_info(event); in fanotify_event_dir_fh_len()
235 FANOTIFY_PE(struct fanotify_event *event) in FANOTIFY_PE() argument
237 return container_of(event, struct fanotify_path_event, fae); in FANOTIFY_PE()
256 FANOTIFY_PERM(struct fanotify_event *event) in FANOTIFY_PERM() argument
258 return container_of(event, struct fanotify_perm_event, fae); in FANOTIFY_PERM()
272 static inline bool fanotify_event_has_path(struct fanotify_event *event) in fanotify_event_has_path() argument
274 return event->type == FANOTIFY_EVENT_TYPE_PATH || in fanotify_event_has_path()
275 event->type == FANOTIFY_EVENT_TYPE_PATH_PERM; in fanotify_event_has_path()
278 static inline struct path *fanotify_event_path(struct fanotify_event *event) in fanotify_event_path() argument
280 if (event->type == FANOTIFY_EVENT_TYPE_PATH) in fanotify_event_path()
281 return &FANOTIFY_PE(event)->path; in fanotify_event_path()
282 else if (event->type == FANOTIFY_EVENT_TYPE_PATH_PERM) in fanotify_event_path()
283 return &FANOTIFY_PERM(event)->path; in fanotify_event_path()