Lines Matching refs:optval
3744 so_setsockopt(struct socket *so, int level, int optname, void *optval, argument
3752 sopt.sopt_val = optval;
3761 int error, optval; local
3819 error = sooptcopyin(sopt, &optval, sizeof optval,
3820 sizeof optval);
3824 if (optval)
3832 error = sooptcopyin(sopt, &optval, sizeof optval,
3833 sizeof optval);
3837 if (optval < 0 || optval >= rt_numfibs) {
3844 so->so_fibnum = optval;
3915 error = sooptcopyin(sopt, &optval, sizeof optval,
3916 sizeof optval);
3919 if (optval < 0 || optval > SO_TS_CLOCK_MAX) {
3923 so->so_ts_clock = optval;
4039 int error, optval; local
4085 optval = so->so_options & sopt->sopt_name;
4087 error = sooptcopyout(sopt, &optval, sizeof optval);
4091 optval = so->so_proto->pr_domain->dom_family;
4095 optval = so->so_type;
4099 optval = so->so_proto->pr_protocol;
4105 optval = so->so_error;
4108 optval = so->so_rerror;
4116 optval = SOLISTENING(so) ? so->sol_sbsnd_hiwat :
4123 optval = SOLISTENING(so) ? so->sol_sbrcv_hiwat :
4130 optval = SOLISTENING(so) ? so->sol_sbsnd_lowat :
4137 optval = SOLISTENING(so) ? so->sol_sbrcv_lowat :
4197 optval = SOLISTENING(so) ? so->sol_qlimit : 0;
4203 optval = SOLISTENING(so) ? so->sol_qlen : 0;
4209 optval = SOLISTENING(so) ? so->sol_incqlen : 0;
4214 optval = so->so_ts_clock;
4218 optval = so->so_max_pacing_rate;