Lines Matching defs:buf
22 * fh buf should be dword aligned. On 64bit arch, the ext_buf pointer is
26 #define FANOTIFY_FH_HDR_LEN offsetof(struct fanotify_fh, buf)
35 unsigned char buf[];
45 unsigned char buf[];
47 * (struct fanotify_fh) dir_fh starts at buf[0]
48 * (optional) file_fh starts at buf[dir_fh_totlen]
49 * name starts at buf[dir_fh_totlen + file_fh_totlen]
63 return (char **)ALIGN((unsigned long)(fh->buf), __alignof__(char *));
73 return fanotify_fh_has_ext_buf(fh) ? fanotify_fh_ext_buf(fh) : fh->buf;
87 BUILD_BUG_ON(offsetof(struct fanotify_info, buf) % 4);
89 return (struct fanotify_fh *)info->buf;
103 return (struct fanotify_fh *)(info->buf + info->dir_fh_totlen);
108 return info->buf + info->dir_fh_totlen + info->file_fh_totlen;
122 strcpy(info->buf + info->dir_fh_totlen + info->file_fh_totlen,
159 /* Reserve space in object_fh.buf[] - access with fanotify_fh_buf() */