MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bpf_ready

Function bpf_ready

freebsd/net/bpf.c:1148–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1146}
1147
1148static int
1149bpf_ready(struct bpf_d *d)
1150{
1151
1152 BPFD_LOCK_ASSERT(d);
1153
1154 if (!bpf_canfreebuf(d) && d->bd_hlen != 0)
1155 return (1);
1156 if ((d->bd_immediate || d->bd_state == BPF_TIMED_OUT) &&
1157 d->bd_slen != 0)
1158 return (1);
1159 return (0);
1160}
1161
1162static int
1163bpfwrite(struct cdev *dev, struct uio *uio, int ioflag)

Callers 2

bpfpollFunction · 0.85
filt_bpfreadFunction · 0.85

Calls 1

bpf_canfreebufFunction · 0.85

Tested by

no test coverage detected