sysctl.3 (b03c558b5aca8a668586b3762e80b03432d3eb14) sysctl.3 (c23155a43a8fbd8404b4d7bca71c292e92fb4870)
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 77 unchanged lines hidden (view full) ---

86function.
87.Pp
88The information is copied into the buffer specified by
89.Fa oldp .
90The size of the buffer is given by the location specified by
91.Fa oldlenp
92before the call,
93and that location gives the amount of data copied after a successful call
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 77 unchanged lines hidden (view full) ---

86function.
87.Pp
88The information is copied into the buffer specified by
89.Fa oldp .
90The size of the buffer is given by the location specified by
91.Fa oldlenp
92before the call,
93and that location gives the amount of data copied after a successful call
94and after a call that returns with the error code ENOMEM.
94and after a call that returns with the error code
95.Er ENOMEM .
95If the amount of data available is greater
96than the size of the buffer supplied,
97the call supplies as much data as fits in the buffer provided
96If the amount of data available is greater
97than the size of the buffer supplied,
98the call supplies as much data as fits in the buffer provided
98and returns with the error code ENOMEM.
99and returns with the error code
100.Er ENOMEM .
99If the old value is not desired,
100.Fa oldp
101and
102.Fa oldlenp
103should be set to NULL.
104.Pp
105The size of the available data can be determined by calling
106.Fn sysctl

--- 279 unchanged lines hidden (view full) ---

386.Bl -column "Third level nameXXXXXX" "Fourth level is:XXXXXX" -offset indent
387.It Pa Third level name Fourth level is:
388.It KERN\_PROC\_ARGS A process ID
389.El
390.It Li KERN_PROF
391Return profiling information about the kernel.
392If the kernel is not compiled for profiling,
393attempts to retrieve any of the KERN_PROF values will
101If the old value is not desired,
102.Fa oldp
103and
104.Fa oldlenp
105should be set to NULL.
106.Pp
107The size of the available data can be determined by calling
108.Fn sysctl

--- 279 unchanged lines hidden (view full) ---

388.Bl -column "Third level nameXXXXXX" "Fourth level is:XXXXXX" -offset indent
389.It Pa Third level name Fourth level is:
390.It KERN\_PROC\_ARGS A process ID
391.El
392.It Li KERN_PROF
393Return profiling information about the kernel.
394If the kernel is not compiled for profiling,
395attempts to retrieve any of the KERN_PROF values will
394fail with EOPNOTSUPP.
396fail with
397.Er EOPNOTSUPP .
395The third level names for the string and integer profiling information
396is detailed below.
397The changeable column shows whether a process with appropriate
398privilege may change the value.
399.Bl -column "GPROFXGMONPARAMXXX" "struct gmonparamXXX" -offset indent
400.It Sy Pa Third level name Type Changeable
401.It GPROF\_STATE integer yes
402.It GPROF\_COUNT u_short[\|] yes

--- 369 unchanged lines hidden ---
398The third level names for the string and integer profiling information
399is detailed below.
400The changeable column shows whether a process with appropriate
401privilege may change the value.
402.Bl -column "GPROFXGMONPARAMXXX" "struct gmonparamXXX" -offset indent
403.It Sy Pa Third level name Type Changeable
404.It GPROF\_STATE integer yes
405.It GPROF\_COUNT u_short[\|] yes

--- 369 unchanged lines hidden ---