Lines Matching refs:fh_len
126 static int fanotify_fid_info_len(int fh_len, int name_len) in fanotify_fid_info_len() argument
128 int info_len = fh_len; in fanotify_fid_info_len()
159 int fh_len; in fanotify_event_len() local
183 fh_len = fanotify_event_object_fh_len(event); in fanotify_event_len()
184 event_len += fanotify_fid_info_len(fh_len, dot_len); in fanotify_event_len()
412 size_t fh_len = fh ? fh->len : 0; in copy_fid_info_to_user() local
413 size_t info_len = fanotify_fid_info_len(fh_len, name_len); in copy_fid_info_to_user()
417 __func__, fh_len, name_len, info_len, count); in copy_fid_info_to_user()
454 handle.handle_bytes = fh_len; in copy_fid_info_to_user()
457 if (!fh_len) in copy_fid_info_to_user()
465 if (WARN_ON_ONCE(len < fh_len)) in copy_fid_info_to_user()
473 if (fh_len <= FANOTIFY_INLINE_FH_LEN) { in copy_fid_info_to_user()
474 memcpy(bounce, fh_buf, fh_len); in copy_fid_info_to_user()
477 if (copy_to_user(buf, fh_buf, fh_len)) in copy_fid_info_to_user()
480 buf += fh_len; in copy_fid_info_to_user()
481 len -= fh_len; in copy_fid_info_to_user()