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

Function crypto_finis

freebsd/opencrypto/crypto.c:1935–1942  ·  view source on GitHub ↗

* Terminate a thread at module unload. The process that * initiated this is waiting for us to signal that we're gone; * wake it up and exit. We use the driver table lock to insure * we don't do the wakeup before they're waiting. There is no * race here because the waiter sleeps on the proc lock for the * thread so it gets notified at the right time because of an * extra wakeup that's done

Source from the content-addressed store, hash-verified

1933 * extra wakeup that's done in exit1().
1934 */
1935static void
1936crypto_finis(void *chan)
1937{
1938 CRYPTO_DRIVER_LOCK();
1939 wakeup_one(chan);
1940 CRYPTO_DRIVER_UNLOCK();
1941 kproc_exit(0);
1942}
1943
1944/*
1945 * Crypto thread, dispatches crypto requests.

Callers 2

crypto_procFunction · 0.85
crypto_ret_procFunction · 0.85

Calls 2

wakeup_oneFunction · 0.50
kproc_exitFunction · 0.50

Tested by

no test coverage detected