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

Function tcp_hpts_insert_diag

freebsd/netinet/tcp_hpts.c:1052–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052uint32_t
1053tcp_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
1073uint32_t
1074__tcp_hpts_insert(struct inpcb *inp, uint32_t slot, int32_t line){

Callers 3

__tcp_hpts_insertFunction · 0.85
rack_start_hpts_timerFunction · 0.85
bbr_start_hpts_timerFunction · 0.85

Calls 4

tcp_hpts_lockFunction · 0.85
microuptimeFunction · 0.85
tcp_hpts_insert_lockedFunction · 0.85
mtx_unlockFunction · 0.50

Tested by

no test coverage detected