| 1129 | } |
| 1130 | |
| 1131 | static void |
| 1132 | bpf_timed_out(void *arg) |
| 1133 | { |
| 1134 | struct bpf_d *d = (struct bpf_d *)arg; |
| 1135 | |
| 1136 | BPFD_LOCK_ASSERT(d); |
| 1137 | |
| 1138 | if (callout_pending(&d->bd_callout) || |
| 1139 | !callout_active(&d->bd_callout)) |
| 1140 | return; |
| 1141 | if (d->bd_state == BPF_WAITING) { |
| 1142 | d->bd_state = BPF_TIMED_OUT; |
| 1143 | if (d->bd_slen != 0) |
| 1144 | bpf_wakeup(d); |
| 1145 | } |
| 1146 | } |
| 1147 | |
| 1148 | static int |
| 1149 | bpf_ready(struct bpf_d *d) |
nothing calls this directly
no test coverage detected