mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Correct description of KERN_PROC. Add description of KERN_PROC_ARGS.
This commit is contained in:
parent
e904636ad4
commit
2de021a4bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68608
@ -361,8 +361,10 @@ The version of ISO/IEC 9945 (POSIX 1003.1) with which the system
|
||||
attempts to comply.
|
||||
.It Li KERN_PROC
|
||||
Return the entire process table, or a subset of it.
|
||||
An array of
|
||||
.Va struct kinfo_proc
|
||||
An array of pairs of
|
||||
.Va struct proc
|
||||
followed by corresponding
|
||||
.Va struct eproc
|
||||
structures is returned,
|
||||
whose size depends on the current number of such objects in the system.
|
||||
The third and fourth level names are as follows:
|
||||
@ -375,6 +377,15 @@ The third and fourth level names are as follows:
|
||||
.It KERN\_PROC\_UID A user ID
|
||||
.It KERN\_PROC\_RUID A real user ID
|
||||
.El
|
||||
|
||||
If the third level name is KERN_PROC_ARGS then the command line argument
|
||||
array is returned in a flattened form, i.e. zero-terminated arguments
|
||||
follow each other. The total size of array is returned. It's also possible
|
||||
for a process to set it's own process title this way.
|
||||
.Bl -column "Third level nameXXXXXX" "Fourth level is:XXXXXX" -offset indent
|
||||
.It Pa Third level name Fourth level is:
|
||||
.It KERN\_PROC\_ARGS A process ID
|
||||
.El
|
||||
.It Li KERN_PROF
|
||||
Return profiling information about the kernel.
|
||||
If the kernel is not compiled for profiling,
|
||||
|
Loading…
Reference in New Issue
Block a user