Lines Matching refs:ok

56     if (!cgroupProg.ok()) {  in attachProgramToCgroup()
62 return netdutils::status::ok; in attachProgramToCgroup()
67 if (!prog.ok()) { in checkProgramAccessible()
70 return netdutils::status::ok; in checkProgramAccessible()
95 if (!cg_fd.ok()) { in initPrograms()
179 return netdutils::status::ok; in initPrograms()
244 return netdutils::status::ok; in init()
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()
282 return netdutils::status::ok; in initMaps()
290 if (permission.ok() && (permission.value() & BPF_PERMISSION_UPDATE_DEVICE_STATS)) { in hasUpdateDeviceStatsPermission()
361 if (!configuration.ok()) { in tagSocket()
374 if (!res.ok()) { in tagSocket()
393 if (!res.ok()) { in tagSocket()
408 if (!res.ok()) { in untagSocket()