| 648 | } |
| 649 | |
| 650 | void |
| 651 | untimeout(timeout_t *ftn, void *arg, struct callout_handle handle) |
| 652 | { |
| 653 | struct callout_cpu *cc; |
| 654 | |
| 655 | /* |
| 656 | * Check for a handle that was initialized |
| 657 | * by callout_handle_init, but never used |
| 658 | * for a real timeout. |
| 659 | */ |
| 660 | if (handle.callout == NULL) |
| 661 | return; |
| 662 | |
| 663 | cc = callout_lock(handle.callout); |
| 664 | if (handle.callout->c_func == ftn && handle.callout->c_arg == arg) |
| 665 | callout_stop(handle.callout); |
| 666 | CC_UNLOCK(cc); |
| 667 | } |
| 668 | |
| 669 | void |
| 670 | callout_handle_init(struct callout_handle *handle) |
no test coverage detected