Searched refs:spair (Results 1 – 2 of 2) sorted by relevance
46 __net_socket struct spair { struct60 K_MEM_SLAB_DEFINE_STATIC(spair_slab, sizeof(struct spair), CONFIG_NET_SOCKETPAIR_MAX * 2, argument61 __alignof__(struct spair));69 static inline bool sock_is_nonblock(const struct spair *spair) in sock_is_nonblock() argument71 return !!(spair->flags & SPAIR_FLAG_NONBLOCK); in sock_is_nonblock()75 static inline bool sock_is_connected(const struct spair *spair) in sock_is_connected() argument77 const struct spair *remote = z_get_fd_obj(spair->remote, in sock_is_connected()89 static inline bool sock_is_eof(const struct spair *spair) in sock_is_eof() argument91 return !sock_is_connected(spair); in sock_is_eof()100 static inline size_t spair_write_avail(struct spair *spair) in spair_write_avail() argument[all …]
23 int spair[2]; member72 int fd = ctx->spair[1]; in fun()90 if (ctx[i].spair[0] == fd) { in fd_to_idx()111 res = socketpair(AF_UNIX, SOCK_STREAM, 0, ctx[i].spair); in setup()142 ctx[i].name, ctx[i].spair[0], ctx[i].spair[1]); in setup()155 close(ctx[i].spair[0]); in teardown()156 ctx[i].spair[0] = -1; in teardown()158 close(ctx[i].spair[1]); in teardown()159 ctx[i].spair[1] = -1; in teardown()166 fds[i].fd = ctx[i].spair[0]; in setup_poll()