Lines Matching refs:control

38  * an associated struct unpcb (UNIX protocol control block).  Stream sockets
324 * that supports both atomic record writes and control data.
854 struct mbuf *control, struct thread *td)
871 if (control != NULL && (error = unp_internalize(&control, td)))
908 control = unp_addsockcred(td, control);
917 control)) {
920 control = NULL;
982 control = unp_addsockcred(td, control);
992 * (e.g., because control messages are not yet internalized).
996 if (control != NULL) {
998 control);
999 control = NULL;
1009 from, m, control))
1010 control = NULL;
1053 if (control != NULL && error != 0)
1054 unp_dispose(control);
1057 if (control != NULL)
1058 m_freem(control);
1766 unp_externalize(struct mbuf *control, struct mbuf **controlp, int flags)
1769 struct cmsghdr *cm = mtod(control, struct cmsghdr *);
1775 socklen_t clen = control->m_len, datalen;
1782 if (controlp != NULL) /* controlp == NULL => free control messages */
1873 m_freem(control);
1912 unp_internalize_cleanup_rights(struct mbuf *control)
1919 for (m = control; m != NULL; m = m->m_next) {
1933 struct mbuf *control, **initial_controlp;
1953 control = *controlp;
1954 clen = control->m_len;
1957 for (cm = mtod(control, struct cmsghdr *); cm != NULL;) {
2110 m_freem(control);
2115 unp_addsockcred(struct thread *td, struct mbuf *control)
2126 return (control);
2138 * Unlink SCM_CREDS control messages (struct cmsgcred), since just
2139 * created SCM_CREDS control message (struct sockcred) has another
2142 if (control != NULL)
2143 for (n = control, n_prev = NULL; n != NULL;) {
2148 control = n->m_next;
2159 m->m_next = control;