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

Function db_show_drivers

freebsd/opencrypto/crypto.c:2152–2178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2150
2151#ifdef DDB
2152static void
2153db_show_drivers(void)
2154{
2155 int hid;
2156
2157 db_printf("%12s %4s %4s %8s %2s %2s\n"
2158 , "Device"
2159 , "Ses"
2160 , "Kops"
2161 , "Flags"
2162 , "QB"
2163 , "KB"
2164 );
2165 for (hid = 0; hid < crypto_drivers_size; hid++) {
2166 const struct cryptocap *cap = crypto_drivers[hid];
2167 if (cap == NULL)
2168 continue;
2169 db_printf("%-12s %4u %4u %08x %2u %2u\n"
2170 , device_get_nameunit(cap->cc_dev)
2171 , cap->cc_sessions
2172 , cap->cc_koperations
2173 , cap->cc_flags
2174 , cap->cc_qblocked
2175 , cap->cc_kqblocked
2176 );
2177 }
2178}
2179
2180DB_SHOW_COMMAND(crypto, db_show_crypto)
2181{

Callers 1

crypto.cFile · 0.85

Calls 2

db_printfFunction · 0.85
device_get_nameunitFunction · 0.85

Tested by

no test coverage detected