| 1138 | } |
| 1139 | |
| 1140 | static void |
| 1141 | itimer_leave(struct itimer *it) |
| 1142 | { |
| 1143 | |
| 1144 | mtx_assert(&it->it_mtx, MA_OWNED); |
| 1145 | KASSERT(it->it_usecount > 0, ("invalid it_usecount")); |
| 1146 | |
| 1147 | if (--it->it_usecount == 0 && (it->it_flags & ITF_WANTED) != 0) |
| 1148 | wakeup(it); |
| 1149 | } |
| 1150 | |
| 1151 | #ifndef _SYS_SYSPROTO_H_ |
| 1152 | struct ktimer_create_args { |
no test coverage detected