Lines Matching refs:fhp
197 struct file_handle *fhp, *fhp2; in get_cgroup_id() local
204 fhsize = sizeof(*fhp); in get_cgroup_id()
205 fhp = calloc(1, fhsize); in get_cgroup_id()
206 if (!fhp) { in get_cgroup_id()
210 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id()
211 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id()
216 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id()
217 fhp2 = realloc(fhp, fhsize); in get_cgroup_id()
223 fhp = fhp2; in get_cgroup_id()
229 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id()
233 free(fhp); in get_cgroup_id()