Hide all vm/vm_pageout.h content under #ifdef _KERNEL.

There are no parts useful for usermode applications in
vm/vm_pageout.h.  Even for the specific applications like fstat and
lsof.

In my opinion, this protection is redundant and instead userspace
should not include the header at all.  Since there are apparently
broken third party codebases, give them a bit of slack by providing
transitional period.

Reported by:	julian
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2018-02-24 10:26:26 +00:00
parent 7ef4e76f74
commit cd84455f91
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329905

View File

@ -65,6 +65,8 @@
#ifndef _VM_VM_PAGEOUT_H_
#define _VM_VM_PAGEOUT_H_
#ifdef _KERNEL
/*
* Header file for pageout daemon.
*/
@ -100,11 +102,10 @@ void vm_wait_domain(int domain);
void vm_wait_min(void);
void vm_wait_severe(void);
#ifdef _KERNEL
int vm_pageout_flush(vm_page_t *, int, int, int, int *, boolean_t *);
void vm_pageout_oom(int shortage);
void vm_swapout_run(void);
void vm_swapout_run_idle(void);
#endif
#endif /* _KERNEL */
#endif /* _VM_VM_PAGEOUT_H_ */