MCPcopy Index your code
hub / github.com/F-Stack/f-stack / hhook_run_socket

Function hhook_run_socket

freebsd/kern/uipc_socket.c:2920–2936  ·  view source on GitHub ↗

* Wrapper for Socket established helper hook. * Parameters: socket, context of the hook point, hook id. */

Source from the content-addressed store, hash-verified

2918 * Parameters: socket, context of the hook point, hook id.
2919 */
2920static int inline
2921hhook_run_socket(struct socket *so, void *hctx, int32_t h_id)
2922{
2923 struct socket_hhook_data hhook_data = {
2924 .so = so,
2925 .hctx = hctx,
2926 .m = NULL,
2927 .status = 0
2928 };
2929
2930 CURVNET_SET(so->so_vnet);
2931 HHOOKS_RUN_IF(V_socket_hhh[h_id], &hhook_data, &so->osd);
2932 CURVNET_RESTORE();
2933
2934 /* Ugly but needed, since hhooks return void for now */
2935 return (hhook_data.status);
2936}
2937
2938/*
2939 * Perhaps this routine, and sooptcopyout(), below, ought to come in an

Callers 6

soallocFunction · 0.85
sodeallocFunction · 0.85
sosetoptFunction · 0.85
sogetoptFunction · 0.85
filt_soreadFunction · 0.85
filt_sowriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected