| 1050 | } |
| 1051 | |
| 1052 | uint32_t |
| 1053 | tcp_hpts_insert_diag(struct inpcb *inp, uint32_t slot, int32_t line, struct hpts_diag *diag) |
| 1054 | { |
| 1055 | struct tcp_hpts_entry *hpts; |
| 1056 | uint32_t slot_on; |
| 1057 | struct timeval tv; |
| 1058 | |
| 1059 | /* |
| 1060 | * We now return the next-slot the hpts will be on, beyond its |
| 1061 | * current run (if up) or where it was when it stopped if it is |
| 1062 | * sleeping. |
| 1063 | */ |
| 1064 | INP_WLOCK_ASSERT(inp); |
| 1065 | hpts = tcp_hpts_lock(inp); |
| 1066 | microuptime(&tv); |
| 1067 | tcp_hpts_insert_locked(hpts, inp, slot, line, diag, &tv); |
| 1068 | slot_on = hpts->p_nxt_slot; |
| 1069 | mtx_unlock(&hpts->p_mtx); |
| 1070 | return (slot_on); |
| 1071 | } |
| 1072 | |
| 1073 | uint32_t |
| 1074 | __tcp_hpts_insert(struct inpcb *inp, uint32_t slot, int32_t line){ |
no test coverage detected