| 178 | } |
| 179 | |
| 180 | static int |
| 181 | netdump_enabled_sysctl(SYSCTL_HANDLER_ARGS) |
| 182 | { |
| 183 | int en, error; |
| 184 | |
| 185 | NETDUMP_RLOCK(); |
| 186 | en = netdump_enabled(); |
| 187 | NETDUMP_RUNLOCK(); |
| 188 | |
| 189 | error = SYSCTL_OUT(req, &en, sizeof(en)); |
| 190 | if (error != 0 || req->newptr == NULL) |
| 191 | return (error); |
| 192 | return (EPERM); |
| 193 | } |
| 194 | |
| 195 | /*- |
| 196 | * Dumping specific primitives. |
nothing calls this directly
no test coverage detected