Lines Matching refs:if_fd
46 readloop(int cnt, int if_fd, struct bpf_program *fp, printfunc printit) in readloop() argument
64 if ((cc = read(if_fd, (char *)buf.p, sizeof(buf))) < 0) in readloop()
65 efReadError(if_fd, "reader"); in readloop()
98 wrapup(if_fd); in readloop()
151 int if_fd; in initdevice() local
154 GETENETDEVICE(0, O_RDONLY, &if_fd); in initdevice()
156 if_fd = open("/dev/enet", O_RDONLY, 0); in initdevice()
159 if (if_fd == -1) { in initdevice()
168 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) { in initdevice()
184 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) { in initdevice()
193 if (ioctl(if_fd, EIOCFLUSH) == -1) { in initdevice()
201 if (ioctl(if_fd, EIOCSETW, &maxwaiting) == -1) { in initdevice()
209 if (ioctl(if_fd, EIOCLRSTAT, 0) == -1) { in initdevice()
219 if (ioctl(if_fd, EIOCSETF, &filter) == -1) { in initdevice()
228 return(if_fd); in initdevice()