| 144 | const char * volatile kdb_why = KDB_WHY_UNSET; |
| 145 | |
| 146 | static int |
| 147 | kdb_sysctl_available(SYSCTL_HANDLER_ARGS) |
| 148 | { |
| 149 | struct kdb_dbbe **iter; |
| 150 | struct sbuf sbuf; |
| 151 | int error; |
| 152 | |
| 153 | sbuf_new_for_sysctl(&sbuf, NULL, 64, req); |
| 154 | SET_FOREACH(iter, kdb_dbbe_set) { |
| 155 | if ((*iter)->dbbe_active == 0) |
| 156 | sbuf_printf(&sbuf, "%s ", (*iter)->dbbe_name); |
| 157 | } |
| 158 | error = sbuf_finish(&sbuf); |
| 159 | sbuf_delete(&sbuf); |
| 160 | return (error); |
| 161 | } |
| 162 | |
| 163 | static int |
| 164 | kdb_sysctl_current(SYSCTL_HANDLER_ARGS) |
nothing calls this directly
no test coverage detected