Lines Matching refs:fd
263 int insn_cnt = ARRAY_SIZE(insns), i, fd, flags = 0;
271 fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, "flag-test", "GPL",
273 if (fd >= 0) {
275 close(fd);
359 int finit_module(int fd, const char *param_values, int flags)
361 return syscall(__NR_finit_module, fd, param_values, flags);
403 int fd;
408 fd = open("bpf_testmod.ko", O_RDONLY);
409 if (fd < 0) {
413 if (finit_module(fd, "", 0)) {
415 close(fd);
418 close(fd);