Searched refs:KSTOSO (Results 1 – 3 of 3) sorted by relevance
/titanic_41/usr/src/lib/libfakekernel/common/ |
H A D | ksocket.c | 42 #define KSTOSO(ks) (ks->kso_fd) macro 171 if (bind(KSTOSO(ks), addr, addrlen) != 0) in ksocket_bind() 175 err = ksocket_bind_helper(KSTOSO(ks), addr, addrlen); in ksocket_bind() 190 if (listen(KSTOSO(ks), backlog) != 0) in ksocket_listen() 213 fd = accept(KSTOSO(ks), addr, addrlenp); in ksocket_accept() 232 if (connect(KSTOSO(ks), addr, addrlen) != 0) in ksocket_connect() 253 error = send(KSTOSO(ks), msg, msglen, flags); in ksocket_send() 280 error = sendto(KSTOSO(ks), msg, msglen, flags, name, namelen); in ksocket_sendto() 307 error = sendmsg(KSTOSO(ks), msg, flags); in ksocket_sendmsg() 334 error = recv(KSTOSO(ks), msg, msglen, flags); in ksocket_recv() [all …]
|
/titanic_41/usr/src/uts/common/io/ksocket/ |
H A D | ksocket.c | 112 error = socket_bind(KSTOSO(ks), addr, addrlen, _SOBIND_SOCKBSD, cr); in ksocket_bind() 126 return (socket_listen(KSTOSO(ks), backlog, cr)); in ksocket_listen() 147 error = socket_accept(KSTOSO(ks), KSOCKET_FMODE(ks), cr, &nso); in ksocket_accept() 179 return (socket_connect(KSTOSO(ks), addr, addrlen, in ksocket_connect() 223 error = socket_sendmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_send() 277 error = socket_sendmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_sendto() 329 error = socket_sendmsg(KSTOSO(ks), msg, &auio, cr); in ksocket_sendmsg() 383 error = socket_recvmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_recv() 436 error = socket_recvmsg(KSTOSO(ks), &msghdr, &auio, cr); in ksocket_recvfrom() 493 error = socket_recvmsg(KSTOSO(ks), msg, &auio, cr); in ksocket_recvmsg() [all …]
|
H A D | ksocket_impl.h | 30 #define KSTOSO(ks) ((struct sonode *)(ks)) macro 55 ((KSTOSO(so)->so_state & (SS_NDELAY|SS_NONBLOCK)) ? FNDELAY : 0) 58 ((ks) != NULL && (KSTOSO(ks))->so_mode & SM_KERNEL && \ 59 !((KSTOSO(ks))->so_state & SS_CLOSING))
|