Home
last modified time | relevance | path

Searched full:sysctl (Results 1 – 25 of 2919) sorted by relevance

12345678910>>...117

/freebsd/share/man/man9/
H A Dsysctl.998 .Nd Dynamic and static sysctl MIB creation functions
485 .Nm SYSCTL
487 .Xr sysctl 8
496 Pointer to sysctl context or NULL, if no context.
499 for how to create a new sysctl context.
503 This makes the sysctl cleanup code much simpler.
527 A bit mask of sysctl control flags.
542 Pointer to sysctl variable or string data.
543 For sysctl values the pointer can be SYSCTL_NULL_XXX_PTR which means the OID is read-only and the r…
569 .Xr sysctl 8
[all …]
H A Dfail.963 .Xr sysctl 9
71 is a sysctl tree (frequently
89 value set in the sysctl MIB.
127 .Sx SYSCTL VARIABLES
159 .Xr sysctl 9 .
163 .Sh SYSCTL VARIABLES
166 macros add sysctl MIBs where specified.
172 The sysctl variable may be set in a number of ways:
234 .It Sy sysctl debug.fail_point.foobar="2.1%return(5)"
238 .It Sy sysctl debug.fail_point.foobar="2%return(5)->5%return(22)"
[all …]
/freebsd/lib/libcasper/services/cap_sysctl/
H A Dcap_sysctl.357 .Xr sysctl 3 ,
62 .Ql system.sysctl
79 capability provides unrestricted access to the sysctl namespace.
80 Applications typically only require access to a small number of sysctl
93 CAP_SYSCTL_READ allow reads of the sysctl variable
94 CAP_SYSCTL_WRITE allow writes of the sysctl variable
95 CAP_SYSCTL_RDWR allow reads and writes of the sysctl variable
96 CAP_RECURSIVE permit access to any child of the sysctl variable
101 function adds the sysctl identified by
105 function adds the sysctl identified by
[all …]
/freebsd/libexec/rc/rc.d/
H A Dnetoptions43 ${SYSCTL} net.inet.tcp.log_in_vain=${log_in_vain} >/dev/null
44 ${SYSCTL} net.inet.udp.log_in_vain=${log_in_vain} >/dev/null
47 ${SYSCTL} net.inet.tcp.log_in_vain=0 >/dev/null
48 ${SYSCTL} net.inet.udp.log_in_vain=0 >/dev/null
53 ${SYSCTL} net.inet.tcp.rfc1323=1 >/dev/null
57 ${SYSCTL} net.inet.tcp.rfc1323=0 >/dev/null
61 ${SYSCTL} net.inet.tcp.always_keepalive=1 >/dev/null
65 ${SYSCTL} net.inet.tcp.always_keepalive=0 >/dev/null
71 ${SYSCTL} net.inet.tcp.drop_synfin=1 >/dev/null
73 ${SYSCTL} net.inet.tcp.drop_synfin=0 >/dev/null
[all …]
H A Dsysctl5 # PROVIDE: sysctl
9 name="sysctl"
10 desc="Set sysctl variables from /etc/sysctl.conf and /etc/sysctl.conf.local"
11 command="/sbin/sysctl"
29 for _f in /etc/sysctl.conf /etc/sysctl.conf.local; do
H A Dcfumass82 _template=`sysctl -n hw.usb.template`
84 sysctl hw.usb.template=-1 > /dev/null
87 warn "unable to set hw.usb.template sysctl"
93 _template=`sysctl -n hw.usb.template`
102 warn "hw.usb.template sysctl set to neither -1 nor 8; not changing"
108 sysctl hw.usb.template="${_new_template}" > /dev/null
111 warn "unable to set hw.usb.template sysctl to ${_new_template}"
123 _template=`sysctl -n hw.usb.template`
132 warn "hw.usb.template sysctl set to neither 0 nor 10; not changing"
138 sysctl hw.usb.template="${_new_template}" > /dev/null
[all …]
/freebsd/sbin/sysctl/tests/
H A Dsysctl_test.sh36 atf_set "descr" "Exercise all sysctl handlers"
40 # Avoid using atf_check here since sysctl -ao generates tons of
42 sysctl -ao >/dev/null 2>stderr
45 atf_fail "sysctl -ao failed"
48 atf_fail "sysctl -ao printed to stderr"
56 atf_set "descr" "Exercise all sysctl handlers in a jail"
65 # Avoid using atf_check here since sysctl -ao generates tons of
67 jail -c name=$jail command=sysctl -ao >/dev/null 2>stderr
69 atf_fail "sysctl -ao failed"
72 atf_fail "sysctl -ao printed to stderr"
[all …]
/freebsd/tests/sys/netpfil/pf/
H A Dmbuf.sh71 jexec alcatraz sysctl net.dummymbuf.rules="inet in ${epair}b pull-head 0;"
72 atf_check_equal '0' '$(jexec alcatraz sysctl -n net.dummymbuf.hits)'
74 atf_check_equal '1' '$(jexec alcatraz sysctl -n net.dummymbuf.hits)'
77 jexec alcatraz sysctl net.dummymbuf.rules="inet in ${epair}b pull-head 1;"
78 jexec alcatraz sysctl net.dummymbuf.hits=0
80 atf_check_equal '1' '$(jexec alcatraz sysctl -n net.dummymbuf.hits)'
84 jexec alcatraz sysctl net.dummymbuf.rules="inet in ${epair}b pull-head 19;"
85 jexec alcatraz sysctl net.dummymbuf.hits=0
87 atf_check_equal '1' '$(jexec alcatraz sysctl -n net.dummymbuf.hits)'
142 jexec alcatraz sysctl net.dummymbuf.rules="inet6 in ${epair}b pull-head 0;"
[all …]
/freebsd/tools/test/stress2/misc/
H A Dschedfuzz.sh36 sysctl kern.sched_fuzz.prof_on > /dev/null 2>&1 || exit 0
43 sysctl kern.sched_fuzz.sched_fuzz_scheduler="${pct1}%return(1)"
44 sysctl kern.sched_fuzz.sched_fuzz_sx_slock_delay="${pct1}%schedfuzz(82)"
45 sysctl kern.sched_fuzz.sched_fuzz_sx_xlock_delay="${pct1}%schedfuzz(82)"
46 sysctl kern.sched_fuzz.sched_fuzz_sx_slock_sleep="${pct1}%schedfuzz(82)"
47 sysctl kern.sched_fuzz.sched_fuzz_sx_xlock_sleep="${pct1}%schedfuzz(82)"
48 sysctl kern.sched_fuzz.sched_fuzz_mtx_spin_lock="${pct1}%schedfuzz(44)"
49 sysctl kern.sched_fuzz.sched_fuzz_mtx_spin_unlock="${pct1}%schedfuzz(44)"
50 sysctl kern.sched_fuzz.sched_fuzz_malloc="${pct1}%schedfuzz(62)"
51 sysctl kern.sched_fuzz.sched_fuzz_cv_wait="${pct2}%schedfuzz(100)"
[all …]
/freebsd/share/man/man4/
H A Dice.456 .Xr sysctl.conf 5
121 .Sx SYSCTL VARIABLES
229 For debugging/testing purposes, a sysctl can be used to set up a mirroring
249 sysctl dev.ice.<interface #>.create_interface=1
250 sysctl dev.ice.<interface #>.delete_interface=1
308 sysctl.
319 sysctl dev.ice.<interface #>.pfc=1 (or 0 to disable)
326 sysctl dev.ice.<interface #>.ets_min_rate
334 sysctl dev.ice.<interface #>.ets_min_rate=10,10,10,10,10,10,10,30
342 sysctl dev.ice.<interface #>.up2tc_map=0,0,1,1,2,2,3,3
[all …]
H A Dsyncache.419 .Xr sysctl 8
24 .Nm sysctl Cm net.inet.tcp.syncookies
26 .Nm sysctl Cm net.inet.tcp.syncookies_only
31 .Nm sysctl Cm net.inet.tcp.syncache.hashsize
33 .Nm sysctl Cm net.inet.tcp.syncache.bucketlimit
35 .Nm sysctl Cm net.inet.tcp.syncache.cachelimit
37 .Nm sysctl Cm net.inet.tcp.syncache.rexmtlimit
39 .Nm sysctl Cm net.inet.tcp.syncache.count
41 .Nm sysctl Cm net.inet.tcp.syncache.see_other
43 .Nm sysctl Cm net.inet.tcp.syncache.rst_on_sock_fail
[all …]
H A Dacpi_ibm.452 .Xr sysctl 8
59 .Xr sysctl 8
66 sysctl as described below.
71 sysctl, is set to
156 .Sh SYSCTL VARIABLES
287 This sysctl should be used with extreme precaution, since disabling automatic
360 .Xr sysctl.conf 5 .
406 LEVEL=`sysctl -n dev.acpi_${OEM}.0.bluetooth`
409 sysctl dev.acpi_${OEM}.0.bluetooth=0
412 sysctl dev.acpi_${OEM}.0.bluetooth=1
[all …]
/freebsd/share/man/man5/
H A Dsysctl.conf.529 .Nm sysctl.conf
33 .Pa /etc/sysctl.conf
37 .Pa /etc/sysctl.conf
39 .Xr sysctl 8
58 .Pf /etc/sysctl.kld.d/<module name>.conf .
61 .It Pa /etc/rc.d/sysctl
71 .It Pa /etc/sysctl.conf
73 .Xr sysctl 8 .
74 .It Pa /etc/sysctl.conf.local
76 .Pa /etc/sysctl.conf .
[all …]
/freebsd/tests/sys/kern/
H A Dsysctl_security_jail_children.sh36 origin_max=$(sysctl -n security.jail.children.max)
37 origin_cur=$(sysctl -n security.jail.children.cur)
52 atf_check_equal "$((origin_cur + 1))" "$(sysctl -n security.jail.children.cur)"
53 atf_check_equal "0" "$(jexec childfree sysctl -n security.jail.children.max)"
54 atf_check_equal "0" "$(jexec childfree sysctl -n security.jail.children.cur)"
57 atf_check_equal "$((origin_cur + 2))" "$(sysctl -n security.jail.children.cur)"
58 atf_check_equal "$((origin_max - 1))" "$(jexec maxallowed sysctl -n security.jail.children.max)"
59 atf_check_equal "0" "$(jexec maxallowed sysctl -n security.jail.children.cur)"
62 atf_check_equal "$((origin_cur + 3))" "$(sysctl -n security.jail.children.cur)"
63 atf_check_equal "1" "$(jexec maxallowed sysctl -n security.jail.children.cur)"
[all …]
H A Dsysctl_kern_proc.c12 #include <sys/sysctl.h>
46 if (sysctl(mib, 4, NULL, &sz, NULL, 0) == 0) { in sysctl_kern_proc_all()
49 (void)sysctl(mib, 4, buf, &sz, NULL, 0); in sysctl_kern_proc_all()
55 ATF_REQUIRE_ERRNO(ESRCH, sysctl(mib, 4, NULL, &sz, NULL, 0) != 0); in sysctl_kern_proc_all()
59 * Validate behaviour of the KERN_PROC_CWD sysctl.
80 ATF_REQUIRE(sysctl(mib, 4, NULL, &sz, NULL, 0) == 0); in ATF_TC_BODY()
85 ATF_REQUIRE(sysctl(mib, 4, &kfile, &sz, NULL, 0) == 0); in ATF_TC_BODY()
115 if (sysctl(mib, 4, &pkfile, &sz, NULL, 0) != 0) in ATF_TC_BODY()
130 ATF_REQUIRE_ERRNO(ENOMEM, sysctl(mib, 4, &kfile, &sz, NULL, 0) != 0); in ATF_TC_BODY()
136 * Validate behaviour of the KERN_PROC_FILEDESC sysctl.
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_sysctl.c33 #include <sys/sysctl.h>
70 LIN_SDT_PROBE_DEFINE1(sysctl, handle_string, copyout_error, "int");
71 LIN_SDT_PROBE_DEFINE1(sysctl, linux_sysctl, copyin_error, "int");
72 LIN_SDT_PROBE_DEFINE2(sysctl, linux_sysctl, wrong_length, "int", "int");
73 LIN_SDT_PROBE_DEFINE1(sysctl, linux_sysctl, unsupported_sysctl, "char *");
87 LIN_SDT_PROBE1(sysctl, handle_string, copyout_error, in handle_string()
110 LIN_SDT_PROBE1(sysctl, linux_sysctl, copyin_error, error); in linux_sysctl()
115 LIN_SDT_PROBE2(sysctl, linux_sysctl, wrong_length, la.nlen, in linux_sysctl()
123 LIN_SDT_PROBE1(sysctl, linux_sysctl, copyin_error, error); in linux_sysctl()
148 linux_msg(td, "sysctl is not implemented"); in linux_sysctl()
[all …]
/freebsd/sys/sys/
H A Dfail.h39 #include <sys/sysctl.h>
197 /* Declare a fail_point and its sysctl in a function. */
240 * @param parent The parent sysctl under which to locate the fp's sysctl
241 * @param name The name of the failpoint in the sysctl tree (and printouts)
251 * @param parent The parent sysctl under which to locate the sysctl
252 * @param name The name of the failpoint in the sysctl tree (and printouts)
260 * @param parent The parent sysctl under which to locate the sysctl
261 * @param name The name of the failpoint in the sysctl tree (and
272 * @param parent The parent sysctl under which to locate the sysctl
273 * @param name The name of the failpoint in the sysctl tree (and
[all …]
/freebsd/sys/dev/qlxgbe/
H A DREADME.txt63 Please run "sysctl kern.ipc" and "sysctl net.inet.tcp" and see if these
67 - Add the following lines to /etc/sysctl.conf and reboot the machine prior
83 sysctl kern.ipc.nmbjumbo9=2000000
84 sysctl kern.ipc.nmbclusters=1000000
85 sysctl net.inet.tcp.recvbuf_max=262144
86 sysctl net.inet.tcp.recvbuf_inc=16384
87 sysctl kern.ipc.maxsockbuf=2097152
88 sysctl net.inet.tcp.recvspace=131072
89 sysctl net.inet.tcp.sendbuf_max=262144
90 sysctl net.inet.tcp.sendspace=65536
/freebsd/contrib/netbsd-tests/sbin/sysctl/
H A Dt_perm.sh44 sysctl $1 | cut -d= -f1 > $file
47 atf_fail "sysctl failed"
58 -x sysctl -w $node=$deadbeef
67 if [ ! -z $(sysctl $1 | grep -e $deadbeef -e $deadbeef_signed) ]; then
77 atf_set "descr" "Test writing to 'ddb' sysctl node as an user"
93 atf_set "descr" "Test writing to 'hw' sysctl node as an user"
110 "sysctl node as an user (PR kern/44946)"
126 atf_set "descr" "Test writing to 'machdep' sysctl node as an user"
142 atf_set "descr" "Test writing to 'net' sysctl node as an user"
158 atf_set "descr" "Test writing to 'security' sysctl node as an user"
[all …]
/freebsd/tests/sys/mac/portacl/
H A Dmisc.sh56 sysctl security.mac.portacl.rules= >/dev/null
74 sysctl security.mac.portacl.rules=${idtype}:${idstr}:${proto}:${port} >/dev/null
85 sysctl security.mac.portacl.rules= >/dev/null
88 portacl_enabled=$(sysctl -n security.mac.portacl.enabled)
89 reserved_high=$(sysctl -n net.inet.ip.portrange.reservedhigh)
90 suser_exempt=$(sysctl -n security.mac.portacl.suser_exempt)
91 port_high=$(sysctl -n security.mac.portacl.port_high)
94 sysctl -n net.inet.ip.portrange.reservedhigh=${reserved_high} >/dev/null
95 sysctl -n security.mac.portacl.suser_exempt=${suser_exempt} >/dev/null
96 sysctl -n security.mac.portacl.port_high=${port_high} >/dev/null
[all …]
/freebsd/sbin/sysctl/
H A Dsysctl.835 .Nm sysctl
121 Display only jail prision sysctl variables (CTLFLAG_PRISON).
139 listsysctls () { set -A reply $(sysctl -AN ${1%.*}) }
140 compctl -K listsysctls sysctl
147 .Dl "complete sysctl 'n/*/`sysctl -Na`/'"
155 .Dl "set psize=`sysctl -n hw.pagesize`"
169 Display only VNET sysctl variables (CTLFLAG_VNET).
211 .Xr sysctl 3
292 .It In sys/sysctl.h
315 .Dl Va "sysctl kern.maxproc"
[all …]
/freebsd/tools/tools/sysdoc/
H A Dsysdoc.sh16 # of changes to sysctl.h. Eventually this utility should replace
35 cat <<EOF>> ./sysctl.5
46 .Xr sysctl 8
51 .Xr sysctl.conf 5 ,
54 .Xr sysctl 8 ,
91 xargs -n 1 /bin/sh ./sysctl.sh \
101 /bin/cat ./markup.file >> sysctl.5
107 # tunables both loader and sysctl(8) oids.
109 cat <<EOF>> ./sysctl.5
137 .Dt SYSCTL 5
[all …]
/freebsd/tests/sys/netinet/
H A Dtcp_connect_port_test.c32 #include <sys/sysctl.h>
49 * value of the sysctl so it can be updated later.
64 * Disable the net.inet.ip.portrange.randomized sysctl. Save the in disable_random_ports()
74 atf_tc_skip("Unable to set sysctl"); in disable_random_ports()
77 fprintf(stderr, "Error: unexpected sysctl value size " in disable_random_ports()
87 warn("error opening sysctl backup file"); in disable_random_ports()
92 warn("error writing saved value to sysctl backup file"); in disable_random_ports()
97 "Error writing saved value to sysctl backup file: " in disable_random_ports()
103 warn("error closing sysctl backup file"); in disable_random_ports()
110 atf_tc_skip("Error setting sysctl"); in disable_random_ports()
[all …]
/freebsd/sys/dev/ice/
H A Dice_common_sysctls.h36 * Contains static sysctl values which are driver wide and configure all
45 #include <sys/sysctl.h>
51 * Global sysctl variable indicating whether the RDMA client interface feature
60 * Global sysctl variable indicating whether the Tx Flow Control filters
66 * @remark each PF has a separate sysctl which can override this value.
74 * Global sysctl variable indicating whether the Tx Flow Control filters
80 * @remark each PF has a separate sysctl which can override this value.
88 * Global sysctl variable indicating whether the Health Status events from the
92 * @remark each PF has a separate sysctl which can override this value.
100 * Global sysctl variabl
[all...]
/freebsd/sys/dev/qlxgb/
H A DREADME.txt64 - Add the following lines to /etc/sysctl.conf and reboot the machine prior
80 sysctl kern.ipc.nmbjumbo9=262144
81 sysctl net.inet.tcp.recvbuf_max=262144
82 sysctl net.inet.tcp.recvbuf_inc=16384
83 sysctl kern.ipc.nmbclusters=1000000
84 sysctl kern.ipc.maxsockbuf=2097152
85 sysctl net.inet.tcp.recvspace=131072
86 sysctl net.inet.tcp.sendbuf_max=262144
87 sysctl net.inet.tcp.sendspace=65536

12345678910>>...117