| /f-stack/freebsd/kern/ |
| H A D | kern_sysctl.c | 138 return (oidp); in sysctl_find_oidname() 223 if (curr != oidp) in sysctl_load_tunable_by_oid_locked() 336 error = sysctl_root_handler_locked(oidp, oidp->oid_arg1, in sysctl_load_tunable_by_oid_locked() 502 oidp->oid_number, oidp->oid_name); in sysctl_register_oid() 568 SLIST_REMOVE(oidp->oid_parent, oidp, in sysctl_unregister_oid() 667 e->entry = oidp; in sysctl_ctx_entry_add() 793 oidp->oid_refcnt, oidp->oid_name); in sysctl_remove_oid_locked() 845 return (oidp); in sysctl_add_oid() 873 return (oidp); in sysctl_add_oid() 979 printf("%d %s ", oidp->oid_number, oidp->oid_name); in sysctl_sysctl_debug_dump_node() [all …]
|
| H A D | kern_mib.c | 158 return (sysctl_handle_long(oidp, &lvalue, 0, req)); in sysctl_maxphys() 160 return (sysctl_handle_long(oidp, &lvalue, 0, req)); in sysctl_maxphys() 162 return (sysctl_handle_int(oidp, &ivalue, 0, req)); in sysctl_maxphys() 206 return (sysctl_handle_long(oidp, &val, 0, req)); in sysctl_hw_physmem() 222 return (sysctl_handle_long(oidp, &val, 0, req)); in sysctl_hw_realmem() 239 return (sysctl_handle_long(oidp, &val, 0, req)); in sysctl_hw_usermem() 358 error = sysctl_handle_string(oidp, tmpname, len, req); in sysctl_hostname() 419 error = sysctl_handle_int(oidp, &level, 0, req); in sysctl_kern_securelvl() 474 error = sysctl_handle_long(oidp, &tmpid, 0, req); in sysctl_hostid() 702 error = sysctl_handle_int(oidp, &pm, 0, req); in sysctl_kern_pid_max()
|
| H A D | subr_kdb.c | 173 error = sysctl_handle_string(oidp, buf, sizeof(buf), req); in kdb_sysctl_current() 189 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_enter() 207 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_panic() 222 error = sysctl_handle_string(oidp, buf, sizeof(buf), req); in kdb_sysctl_panic_str() 238 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_trap() 254 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_trap_code() 282 error = sysctl_handle_int(oidp, &i, 0, req); in kdb_sysctl_stack_overflow()
|
| H A D | vfs_init.c | 377 struct sysctl_oid *oidp; in vfs_register() local 513 SLIST_FOREACH(oidp, SYSCTL_CHILDREN(&sysctl___vfs), oid_link) { in vfs_register() 514 if (strcmp(oidp->oid_name, vfc->vfc_name) == 0) { in vfs_register() 515 sysctl_unregister_oid(oidp); in vfs_register() 516 oidp->oid_number = vfc->vfc_typenum; in vfs_register() 517 sysctl_register_oid(oidp); in vfs_register()
|
| H A D | kern_ktr.c | 122 error = sysctl_handle_string(oidp, lktr_cpumask_str, in sysctl_debug_ktr_cpumask() 143 error = sysctl_handle_int(oidp, &clear, 0, req); in sysctl_debug_ktr_clear() 170 error = sysctl_handle_64(oidp, &mask, 0, req); in sysctl_debug_ktr_mask() 219 error = sysctl_handle_int(oidp, &entries, 0, req); in sysctl_debug_ktr_entries() 288 error = sysctl_handle_int(oidp, &enable, 0, req); in sysctl_debug_ktr_alq_enable()
|
| H A D | kern_poll.c | 119 error = sysctl_handle_int(oidp, &val, 0, req); in poll_burst_max_sysctl() 145 error = sysctl_handle_int(oidp, &val, 0, req); in poll_each_burst_sysctl() 176 error = sysctl_handle_int(oidp, &val, 0, req); in user_frac_sysctl() 200 error = sysctl_handle_int(oidp, &val, 0, req); in reg_frac_sysctl()
|
| H A D | kern_linker.c | 294 struct sysctl_oid **start, **stop, **oidp; in linker_file_register_sysctls() local 307 for (oidp = start; oidp < stop; oidp++) { in linker_file_register_sysctls() 309 sysctl_register_oid(*oidp); in linker_file_register_sysctls() 311 sysctl_register_disabled_oid(*oidp); in linker_file_register_sysctls() 320 struct sysctl_oid **start, **stop, **oidp; in linker_file_enable_sysctls() local 333 for (oidp = start; oidp < stop; oidp++) in linker_file_enable_sysctls() 334 sysctl_enable_oid(*oidp); in linker_file_enable_sysctls() 342 struct sysctl_oid **start, **stop, **oidp; in linker_file_unregister_sysctls() local 354 for (oidp = start; oidp < stop; oidp++) in linker_file_unregister_sysctls() 355 sysctl_unregister_oid(*oidp); in linker_file_unregister_sysctls()
|
| H A D | subr_prof.c | 341 error = sysctl_handle_int(oidp, &state, 0, req); in sysctl_kern_prof() 373 return (sysctl_handle_opaque(oidp, in sysctl_kern_prof() 376 return (sysctl_handle_opaque(oidp, in sysctl_kern_prof() 379 return (sysctl_handle_opaque(oidp, in sysctl_kern_prof() 382 return (sysctl_handle_opaque(oidp, gp, sizeof *gp, req)); in sysctl_kern_prof()
|
| H A D | subr_clock.c | 64 error = sysctl_handle_int(oidp, oidp->oid_arg1, oidp->oid_arg2, req); in sysctl_machdep_adjkerntz()
|
| /f-stack/freebsd/netgraph/bluetooth/common/ |
| H A D | ng_bluetooth.c | 79 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_hci_command_timeout_value() 103 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_hci_connect_timeout_value() 138 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_l2cap_rtx_timeout_value() 163 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_l2cap_ertx_timeout_value() 241 error = sysctl_handle_int(oidp, &value, 0, req); in bluetooth_set_sco_rtx_timeout_value()
|
| /f-stack/freebsd/arm/broadcom/bcm2835/ |
| H A D | bcm2835_pwm.c | 195 error = sysctl_handle_int(oidp, &r, sizeof(r), req); in bcm_pwm_pwm_freq_proc() 208 error = sysctl_handle_int(oidp, &r, sizeof(r), req); in bcm_pwm_mode_proc() 226 error = sysctl_handle_int(oidp, &r, sizeof(r), req); in bcm_pwm_freq_proc() 242 error = sysctl_handle_int(oidp, &sc->period, sizeof(sc->period), req); in bcm_pwm_period_proc() 257 error = sysctl_handle_int(oidp, &r, sizeof(r), req); in bcm_pwm_ratio_proc() 279 error = sysctl_handle_int(oidp, &r, sizeof(r), req); in bcm_pwm_pwm_freq2_proc() 292 error = sysctl_handle_int(oidp, &r, sizeof(r), req); in bcm_pwm_mode2_proc() 308 error = sysctl_handle_int(oidp, &sc->period2, sizeof(sc->period2), req); in bcm_pwm_period2_proc() 323 error = sysctl_handle_int(oidp, &r, sizeof(r), req); in bcm_pwm_ratio2_proc() 343 error = sysctl_handle_int(oidp, ®, sizeof(reg), req); in bcm_pwm_reg_proc()
|
| H A D | bcm2835_spi.c | 131 error = sysctl_handle_int(oidp, &clk, sizeof(clk), req); in bcm_spi_clock_proc() 151 error = sysctl_handle_int(oidp, ®, sizeof(reg), req); in bcm_spi_cs_bit_proc() 162 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CPOL)); in bcm_spi_cpol_proc() 169 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CPHA)); in bcm_spi_cpha_proc() 176 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CSPOL0)); in bcm_spi_cspol0_proc() 183 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CSPOL1)); in bcm_spi_cspol1_proc() 190 return (bcm_spi_cs_bit_proc(oidp, arg1, arg2, req, SPI_CS_CSPOL2)); in bcm_spi_cspol2_proc()
|
| H A D | bcm2835_cpufreq.c | 659 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_arm_freq() 692 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_core_freq() 726 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_sdram_freq() 758 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_turbo() 794 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_voltage_core() 831 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_voltage_sdram_c() 869 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_voltage_sdram_i() 906 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_voltage_sdram_p() 939 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_voltage_sdram() 990 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_bcm2835_cpufreq_temperature() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | sysctl_os.c | 235 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_vfs_zfs_arc_no_grow_shift() 256 err = sysctl_handle_long(oidp, arg1, 0, req); in param_set_arc_long() 270 err = sysctl_handle_int(oidp, arg1, 0, req); in param_set_arc_int() 440 err = sysctl_handle_int(oidp, &val, 0, req); in sysctl_vfs_zfs_debug_flags() 468 err = sysctl_handle_long(oidp, &val, 0, req); in param_set_deadman_synctime() 485 err = sysctl_handle_long(oidp, &val, 0, req); in param_set_deadman_ziotime() 504 rc = sysctl_handle_string(oidp, buf, sizeof (buf), req); in param_set_deadman_failmode() 534 err = sysctl_handle_64(oidp, &val, 0, req); in param_set_min_auto_ashift() 553 err = sysctl_handle_64(oidp, &val, 0, req); in param_set_max_auto_ashift() 675 err = sysctl_handle_int(oidp, &val, 0, req); in param_set_slop_shift() [all …]
|
| /f-stack/freebsd/i386/i386/ |
| H A D | longrun.c | 206 error = sysctl_handle_int(oidp, &mode, 0, req); in tmx86_longrun_sysctl() 230 val = *(u_int *)oidp->oid_arg1; in tmx86_status_sysctl() 231 error = sysctl_handle_int(oidp, &val, 0, req); in tmx86_status_sysctl() 242 argp = (u_int32_t *)oidp->oid_arg1; in tmx86_longrun_profile_sysctl() 244 error = sysctl_handle_int(oidp, &arg, 0, req); in tmx86_longrun_profile_sysctl()
|
| /f-stack/freebsd/security/mac/ |
| H A D | mac_system.c | 222 mac_system_check_sysctl(struct ucred *cred, struct sysctl_oid *oidp, in mac_system_check_sysctl() argument 231 MAC_POLICY_CHECK_NOSLEEP(system_check_sysctl, cred, oidp, arg1, arg2, in mac_system_check_sysctl() 233 MAC_CHECK_PROBE3(system_check_sysctl, error, cred, oidp, req); in mac_system_check_sysctl()
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | dn_aqm_pie.c | 93 if (!strcmp(oidp->oid_name,"alpha")) in pie_sysctl_alpha_beta_handler() 99 error = sysctl_handle_long(oidp, &value, 0, req); in pie_sysctl_alpha_beta_handler() 105 if (!strcmp(oidp->oid_name,"alpha")) in pie_sysctl_alpha_beta_handler() 118 if (!strcmp(oidp->oid_name,"target")) in pie_sysctl_target_tupdate_maxb_handler() 120 else if (!strcmp(oidp->oid_name,"tupdate")) in pie_sysctl_target_tupdate_maxb_handler() 126 error = sysctl_handle_long(oidp, &value, 0, req); in pie_sysctl_target_tupdate_maxb_handler() 133 if (!strcmp(oidp->oid_name,"target")) in pie_sysctl_target_tupdate_maxb_handler() 135 else if (!strcmp(oidp->oid_name,"tupdate")) in pie_sysctl_target_tupdate_maxb_handler() 150 error = sysctl_handle_long(oidp, &value, 0, req); in pie_sysctl_max_ecnth_handler()
|
| H A D | dn_sched_fq_pie.c | 165 if (!strcmp(oidp->oid_name,"alpha")) in fqpie_sysctl_alpha_beta_handler() 171 error = sysctl_handle_long(oidp, &value, 0, req); in fqpie_sysctl_alpha_beta_handler() 177 if (!strcmp(oidp->oid_name,"alpha")) in fqpie_sysctl_alpha_beta_handler() 190 if (!strcmp(oidp->oid_name,"target")) in fqpie_sysctl_target_tupdate_maxb_handler() 192 else if (!strcmp(oidp->oid_name,"tupdate")) in fqpie_sysctl_target_tupdate_maxb_handler() 198 error = sysctl_handle_long(oidp, &value, 0, req); in fqpie_sysctl_target_tupdate_maxb_handler() 205 if (!strcmp(oidp->oid_name,"target")) in fqpie_sysctl_target_tupdate_maxb_handler() 207 else if (!strcmp(oidp->oid_name,"tupdate")) in fqpie_sysctl_target_tupdate_maxb_handler() 222 error = sysctl_handle_long(oidp, &value, 0, req); in fqpie_sysctl_max_ecnth_handler()
|
| /f-stack/freebsd/netinet/cc/ |
| H A D | cc_hd.c | 187 error = sysctl_handle_int(oidp, &new, 0, req); in hd_pmax_handler() 205 error = sysctl_handle_int(oidp, &new, 0, req); in hd_qmin_handler() 223 error = sysctl_handle_int(oidp, &new, 0, req); in hd_qthresh_handler()
|
| H A D | cc.c | 104 error = sysctl_handle_string(oidp, default_cc, sizeof(default_cc), req); in cc_default_algo() 171 err = sysctl_handle_string(oidp, sbuf_data(s), 0, req); in cc_list_available()
|
| /f-stack/freebsd/arm/ti/am335x/ |
| H A D | am335x_ehrpwm.c | 336 error = sysctl_handle_int(oidp, &freq, sizeof(freq), req); in am335x_ehrpwm_sysctl_freq() 385 error = sysctl_handle_int(oidp, &clkdiv, sizeof(clkdiv), req); in am335x_ehrpwm_sysctl_clkdiv() 413 if (oidp == sc->sc_chanA_oid) in am335x_ehrpwm_sysctl_duty() 417 error = sysctl_handle_int(oidp, &duty, 0, req); in am335x_ehrpwm_sysctl_duty() 428 if (oidp == sc->sc_chanA_oid) { in am335x_ehrpwm_sysctl_duty() 449 error = sysctl_handle_int(oidp, &period, 0, req); in am335x_ehrpwm_sysctl_period()
|
| /f-stack/freebsd/contrib/ipfilter/netinet/ |
| H A D | mlfk_ipl.c | 358 if ((oidp->oid_kind & CTLFLAG_OFF) && (V_ipfmain.ipf_running > 0)) in sysctl_ipf_int() 381 return (sysctl_ipf_int(oidp, arg1, 0, req)); in sysctl_ipf_int_nat() 392 return (sysctl_ipf_int(oidp, arg1, 0, req)); in sysctl_ipf_int_state() 403 return (sysctl_ipf_int(oidp, arg1, 0, req)); in sysctl_ipf_int_auth() 414 return (sysctl_ipf_int(oidp, arg1, 0, req)); in sysctl_ipf_int_frag()
|
| /f-stack/freebsd/sys/ |
| H A D | sysctl.h | 151 #define SYSCTL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, \ 236 void sysctl_register_oid(struct sysctl_oid *oidp); 237 void sysctl_register_disabled_oid(struct sysctl_oid *oidp); 238 void sysctl_enable_oid(struct sysctl_oid *oidp); 239 void sysctl_unregister_oid(struct sysctl_oid *oidp); 1147 void sysctl_rename_oid(struct sysctl_oid *oidp, const char *name); 1148 int sysctl_move_oid(struct sysctl_oid *oidp, 1150 int sysctl_remove_oid(struct sysctl_oid *oidp, int del, int recurse); 1154 struct sysctl_oid *oidp); 1156 struct sysctl_oid *oidp); [all …]
|
| /f-stack/freebsd/netinet/ |
| H A D | ip_id.c | 161 error = sysctl_handle_int(oidp, &new, 0, req); in sysctl_ip_randomid() 181 error = sysctl_handle_int(oidp, &new, 0, req); in sysctl_ip_id_change()
|
| /f-stack/freebsd/arm/arm/ |
| H A D | cpuinfo.c | 506 rv = sysctl_handle_int(oidp, oidp->oid_arg1, oidp->oid_arg2, req); in sysctl_disable_bp_hardening()
|