Home
last modified time | relevance | path

Searched refs:cg_fd (Results 1 – 4 of 4) sorted by relevance

/system/bpf/libbpf_android/
DBpfUtils.cpp186 int attachProgram(bpf_attach_type type, uint32_t prog_fd, uint32_t cg_fd) { in attachProgram() argument
189 attr.target_fd = cg_fd; in attachProgram()
196 int detachProgram(bpf_attach_type type, uint32_t cg_fd) { in detachProgram() argument
199 attr.target_fd = cg_fd; in detachProgram()
/system/bpf/libbpf_android/include/bpf/
DBpfUtils.h159 int attachProgram(bpf_attach_type type, uint32_t prog_fd, uint32_t cg_fd);
160 int detachProgram(bpf_attach_type type, uint32_t cg_fd);
/system/netd/server/
DTrafficController.h245 base::unique_fd& cg_fd);
DTrafficController.cpp265 unique_fd cg_fd(open(cg2_path.c_str(), O_DIRECTORY | O_RDONLY | O_CLOEXEC)); in initPrograms() local
266 if (cg_fd == -1) { in initPrograms()
271 RETURN_IF_NOT_OK(attachProgramToCgroup(BPF_EGRESS_PROG_PATH, cg_fd, BPF_CGROUP_INET_EGRESS)); in initPrograms()
272 RETURN_IF_NOT_OK(attachProgramToCgroup(BPF_INGRESS_PROG_PATH, cg_fd, BPF_CGROUP_INET_INGRESS)); in initPrograms()
281 attachProgramToCgroup(CGROUP_SOCKET_PROG_PATH, cg_fd, BPF_CGROUP_INET_SOCK_CREATE)); in initPrograms()