| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sysctls exporting swap information. When running on a live kernel,
the sysctl's will now be used instead of kvm_read, allowing consumers of
this interface to run without privilege (setgid kmem). Retain the
ability to run on coredumps, or on a kernel using kmem if explicitly
pointed at one.
A side effect of this change is that kvm_getswapinfo() is faster now in
the general case. If the SWIF_DUMP_TREE flag is given (pstat -ss does
this), the radix tree walker, which still uses kvm_read in any case, is
invoked, and therefore does require privilege.
Submitted by: Thomas Moestl <tmoestl@gmx.net>
Reviewed by: freebsd-audit
|
| |
|
| |
|
| |
|
|
|
|
|
| |
brokenness introduced in <sys/select.h> rev. 1.8 which is now OBE.
<sys/tty.h> and <sys/selinfo.h> together do the right thing.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
no longer contains kernel specific data structures, but rather
only scalar values and structures that are already part of the
kernel/user interface, specifically rusage and rtprio. It no
longer contains proc, session, pcred, ucred, procsig, vmspace,
pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If
any of these changed in size, ps, w, fstat, gcore, systat, and
top would all stop working. The new structure has over 200 bytes
of unassigned space for future values to be added, yet is nearly
100 bytes smaller per entry than the structure that it replaced.
|
|
|
|
| |
Use _PATH_* where where possible.
|
| |
|
| |
|
|
|
|
| |
here for the include of sys/select.h.
|
|
|
|
| |
This is the documented size which the user-provided buffer must be.
|
|
|
|
| |
Reviewed by: peter
|
|
|
|
| |
Use .Pa macro for "enlighting" path
|
| |
|
|
|
|
|
|
|
|
| |
match the documented interface.
Previously it returned 0 on error.
PR: bin/10511
|
| |
|
|
|
|
| |
kvm_getfiles() referred to itself as kvm_getprocs().
|
|
|
|
| |
.PP -> .Pp
|
|
|
|
| |
Reviewed by: marcel, and make world
|
|
|
|
|
| |
was not updated to _KERNEL. Actually including <sys/file.h> as specified
never actually worked, since a prerequisite was missing.
|
|
|
|
|
|
| |
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.
|
|
|
|
|
|
| |
and is module aware. Yes, this means that kvm_nlist(3) will find symbols
in loaded modules. The emulation of the nlist struct is pretty crude but
seems to work well enough for all the users in the tree that I found.
|
|
|
|
| |
Remove unused dev2budev() function.
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes some nasty procfs problems for SMP, makes ps(1) run much faster,
and makes ps(1) even less dependent on /proc which will aid chroot and
jails alike.
To disable this facility and revert to previous behaviour:
sysctl -w kern.ps_arg_cache_limit=0
For full details see the current@FreeBSD.org mail-archives.
|
|
|
|
|
| |
/dev/drum but has not been used for a LONG time.
Add $FreeBSD$
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
for over 5 years since we switched to using procfs for kvm_uread().
This cleanup was motivated by recent breakage of the default swap file
(/dev/drum) when swapon() has not been called.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
|
|
|
|
| |
that went away in January.
|
|
|
|
|
|
|
|
| |
Include <machine/ansi.h> so that this file is self-sufficient again.
Rev.1.6 doesn't do this as claimed unless <nlist.h> has nonstandard
pollution.
Cleaned up includes.
|
| |
|
|
|
|
| |
Reviewed by: Doug Rabson <dfr@nlsystems.com>
|
|
|
|
| |
interface.
|
|
|
|
|
| |
Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.
|
| |
|
|
|
|
| |
Hoped for by: wollman
|
|
|
|
| |
wrong radix for recursive subnodes.
|
|
|
|
|
|
|
| |
This man page may be overdoing the cross references by referencing
man pages that are just links to other pages that are referenced.
kvm_uread() is still completely undocumented in kvm*.3.
|
|
|
|
| |
Sorted MLINKS.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
pstat, top, and systat.
|