/freebsd/share/man/man9/ |
H A D | sysctl.9 | 98 .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 D | fail.9 | 63 .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 D | cap_sysctl.3 | 57 .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 D | netoptions | 43 ${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 D | sysctl | 5 # 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 D | cfumass | 82 _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 …]
|
H A D | routing | 317 ${SYSCTL} net.inet6.ip6.use_defaultzone=1 > /dev/null 334 if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then 356 ${SYSCTL} net.inet.icmp.bmcastecho=1 > /dev/null 358 ${SYSCTL} net.inet.icmp.bmcastecho=0 > /dev/null 374 ${SYSCTL} net.inet.icmp.drop_redirect=1 > /dev/null 376 ${SYSCTL} net.inet.icmp.drop_redirect=0 > /dev/null 382 ${SYSCTL} net.inet.icmp.log_redirect=1 > /dev/null 384 ${SYSCTL} net.inet.icmp.log_redirect=0 > /dev/null 390 ${SYSCTL} net.inet.ip.forwarding=1 > /dev/null 392 ${SYSCTL} net.inet.ip.forwarding=0 > /dev/null [all …]
|
/freebsd/tests/sys/netpfil/pf/ |
H A D | mbuf.sh | 71 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)" 136 jexec alcatraz sysctl net.dummymbuf.rules="inet6 in ${epair}b pull-head 0;" [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | schedfuzz.sh | 36 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/man5/ |
H A D | sysctl.conf.5 | 29 .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/share/man/man4/ |
H A D | syncache.4 | 19 .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 46 .Xr sysctl 8 [all …]
|
H A D | acpi_ibm.4 | 52 .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 …]
|
H A D | ads111x.4 | 54 .Xr sysctl 8 . 57 .Xr sysctl 8 85 sysctl variables for just the channels specified in the config data. 96 or other external device, and use the driver's sysctl variables to 100 .Sh SYSCTL VARIABLES 101 Sysctl variables are used to access the voltage measurements, and to 106 Channel numbers in these sysctl variables range from 0 through 7. 141 sysctl variables -- you must access it specifically by name, because 185 If no channels are configured, sysctl variables will be created 222 The amplifier gain, as described above for the sysctl variable [all …]
|
/freebsd/tests/sys/kern/ |
H A D | sysctl_security_jail_children.sh | 36 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 D | sysctl_kern_proc.c | 12 #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 D | linux_sysctl.c | 33 #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 D | fail.h | 39 #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 D | README.txt | 63 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 D | t_perm.sh | 44 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/sbin/sysctl/ |
H A D | sysctl.8 | 35 .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 D | sysdoc.sh | 16 # 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 D | tcp_connect_port_test.c | 32 #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 D | ice_common_sysctls.h | 36 * 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 D | README.txt | 64 - 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
|
/freebsd/tests/sys/mac/portacl/ |
H A D | misc.sh | 3 sysctl security.mac.portacl >/dev/null 2>&1 66 sysctl security.mac.portacl.rules= >/dev/null 84 sysctl security.mac.portacl.rules=${idtype}:${idstr}:${proto}:${port} >/dev/null 95 sysctl security.mac.portacl.rules= >/dev/null 98 reserved_high=$(sysctl -n net.inet.ip.portrange.reservedhigh) 99 suser_exempt=$(sysctl -n security.mac.portacl.suser_exempt) 100 port_high=$(sysctl -n security.mac.portacl.port_high) 103 sysctl -n net.inet.ip.portrange.reservedhigh=${reserved_high} >/dev/null 104 sysctl -n security.mac.portacl.suser_exempt=${suser_exempt} >/dev/null 105 sysctl -n security.mac.portacl.port_high=${port_high} >/dev/null
|