vm_object_list: split sysctl handler in separate function
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D31163
This commit is contained in:
parent
9ef7df022a
commit
1b610624fd
@ -2471,7 +2471,7 @@ vm_object_busy_wait(vm_object_t obj, const char *wmesg)
|
||||
}
|
||||
|
||||
static int
|
||||
sysctl_vm_object_list(SYSCTL_HANDLER_ARGS)
|
||||
vm_object_list_handler(struct sysctl_req *req)
|
||||
{
|
||||
struct kinfo_vmobject *kvo;
|
||||
char *fullpath, *freepath;
|
||||
@ -2588,6 +2588,13 @@ sysctl_vm_object_list(SYSCTL_HANDLER_ARGS)
|
||||
free(kvo, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
|
||||
static int
|
||||
sysctl_vm_object_list(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
return (vm_object_list_handler(req));
|
||||
}
|
||||
|
||||
SYSCTL_PROC(_vm, OID_AUTO, objects, CTLTYPE_STRUCT | CTLFLAG_RW | CTLFLAG_SKIP |
|
||||
CTLFLAG_MPSAFE, NULL, 0, sysctl_vm_object_list, "S,kinfo_vmobject",
|
||||
"List of VM objects");
|
||||
|
Loading…
Reference in New Issue
Block a user