Lines Matching refs:fhp
460 struct file_handle *fhp, *fhp2; in get_cgroup_id_from_path() local
465 fhsize = sizeof(*fhp); in get_cgroup_id_from_path()
466 fhp = calloc(1, fhsize); in get_cgroup_id_from_path()
467 if (!fhp) { in get_cgroup_id_from_path()
471 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id_from_path()
472 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id_from_path()
477 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id_from_path()
478 fhp2 = realloc(fhp, fhsize); in get_cgroup_id_from_path()
484 fhp = fhp2; in get_cgroup_id_from_path()
490 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id_from_path()
494 free(fhp); in get_cgroup_id_from_path()