Lines Matching refs:unique_fd
36 using base::unique_fd;
53 static Status attachProgramToCgroup(const char* programPath, const unique_fd& cgroupFd, in attachProgramToCgroup()
55 unique_fd cgroupProg(retrieveProgram(programPath)); in attachProgramToCgroup()
66 unique_fd prog(retrieveProgram(programPath)); in checkProgramAccessible()
94 unique_fd cg_fd(open(cg2_path, O_DIRECTORY | O_RDONLY | O_CLOEXEC)); in initPrograms()
252 unique_fd fd0(bpf::mapRetrieveExclusiveRW(m1)); if (!fd0.ok()) abort(); // grabs exclusive lock in mapLockTest()
254 unique_fd fd1(bpf::mapRetrieveExclusiveRW(m2)); if (!fd1.ok()) abort(); // no conflict with fd0 in mapLockTest()
255 unique_fd fd2(bpf::mapRetrieveExclusiveRW(m2)); if ( fd2.ok()) abort(); // busy due to fd1 in mapLockTest()
256 unique_fd fd3(bpf::mapRetrieveRO(m2)); if (!fd3.ok()) abort(); // no lock taken in mapLockTest()
257 unique_fd fd4(bpf::mapRetrieveRW(m2)); if ( fd4.ok()) abort(); // busy due to fd1 in mapLockTest()
259 unique_fd fd5(bpf::mapRetrieveRO(m2)); if (!fd5.ok()) abort(); // no lock taken in mapLockTest()
260 unique_fd fd6(bpf::mapRetrieveRW(m2)); if (!fd6.ok()) abort(); // now ok in mapLockTest()
261 unique_fd fd7(bpf::mapRetrieveRO(m2)); if (!fd7.ok()) abort(); // no lock taken in mapLockTest()
262 unique_fd fd8(bpf::mapRetrieveExclusiveRW(m2)); if ( fd8.ok()) abort(); // busy due to fd6 in mapLockTest()
265 unique_fd fd9(bpf::mapRetrieveWO(m1)); if (!fd9.ok()) abort(); // grabs exclusive lock in mapLockTest()