Lines Matching defs:si
51 static void fill_common_sockinfo(struct socket *so, struct socket_info *si);
68 fill_common_sockinfo(struct socket *so, struct socket_info *si)
70 si->soi_so = (u_int64_t)((uintptr_t)so);
71 si->soi_type = so->so_type;
72 si->soi_options = so->so_options;
73 si->soi_linger = so->so_linger;
74 si->soi_state = so->so_state;
75 si->soi_pcb = (u_int64_t)((uintptr_t)so->so_pcb);
77 si->soi_protocol = so->so_proto->pr_protocol;
79 si->soi_family = so->so_proto->pr_domain->dom_family;
81 si->soi_family = 0;
83 si->soi_protocol = si->soi_family = 0;
84 si->soi_qlen = so->so_qlen;
85 si->soi_incqlen = so->so_incqlen;
86 si->soi_qlimit = so->so_qlimit;
87 si->soi_timeo = so->so_timeo;
88 si->soi_error = so->so_error;
89 si->soi_oobmark = so->so_oobmark;
90 fill_sockbuf_info(&so->so_snd, &si->soi_snd);
91 fill_sockbuf_info(&so->so_rcv, &si->soi_rcv);
96 fill_socketinfo(struct socket *so, struct socket_info *si)
105 si->soi_kind = SOCKINFO_GENERIC;
107 fill_common_sockinfo(so, si);
119 struct in_sockinfo *insi = &si->soi_proto.pri_in;
122 si->soi_kind = SOCKINFO_IN;
139 struct tcp_sockinfo *tcpsi = &si->soi_proto.pri_tcp;
142 si->soi_kind = SOCKINFO_TCP;
157 struct un_sockinfo *unsi = &si->soi_proto.pri_un;
159 si->soi_kind = SOCKINFO_UN;
184 struct ndrv_info *ndrvsi = &si->soi_proto.pri_ndrv;
186 si->soi_kind = SOCKINFO_NDRV;
202 struct kern_event_info *kesi = &si->soi_proto.pri_kern_event;
204 si->soi_kind = SOCKINFO_KERN_EVENT;
212 struct kern_ctl_info *kcsi = &si->soi_proto.pri_kern_ctl;
216 si->soi_kind = SOCKINFO_KERN_CTL;