Lines Matching refs:pathname
117 inline int bpfFdPin(const borrowed_fd& map_fd, const char* pathname) { in bpfFdPin() argument
119 .pathname = ptr_to_u64(pathname), in bpfFdPin()
124 inline int bpfFdGet(const char* pathname, uint32_t flag) { in bpfFdGet() argument
126 .pathname = ptr_to_u64(pathname), in bpfFdGet()
159 inline int mapRetrieveLocklessRW(const char* pathname) { in mapRetrieveLocklessRW() argument
160 return bpfFdGet(pathname, 0); in mapRetrieveLocklessRW()
163 inline int mapRetrieveExclusiveRW(const char* pathname) { in mapRetrieveExclusiveRW() argument
164 return bpfLock(mapRetrieveLocklessRW(pathname), F_WRLCK); in mapRetrieveExclusiveRW()
167 inline int mapRetrieveRW(const char* pathname) { in mapRetrieveRW() argument
168 return bpfLock(mapRetrieveLocklessRW(pathname), F_RDLCK); in mapRetrieveRW()
171 inline int mapRetrieveRO(const char* pathname) { in mapRetrieveRO() argument
172 return bpfFdGet(pathname, BPF_F_RDONLY); in mapRetrieveRO()
177 inline int mapRetrieveWO(const char* pathname) { in mapRetrieveWO() argument
178 return bpfLock(bpfFdGet(pathname, BPF_F_WRONLY), F_WRLCK); in mapRetrieveWO()
181 inline int retrieveProgram(const char* pathname) { in retrieveProgram() argument
182 return bpfFdGet(pathname, BPF_F_RDONLY); in retrieveProgram()
185 inline bool usableProgram(const char* pathname) { in usableProgram() argument
186 unique_fd fd(retrieveProgram(pathname)); in usableProgram()