Lines Matching refs:sockaddr_un
147 static unsigned int unix_abstract_hash(struct sockaddr_un *sunaddr, in unix_abstract_hash()
251 static struct unix_address *unix_create_addr(struct sockaddr_un *sunaddr, in unix_create_addr()
280 static int unix_validate_addr(struct sockaddr_un *sunaddr, int addr_len) in unix_validate_addr()
282 if (addr_len <= offsetof(struct sockaddr_un, sun_path) || in unix_validate_addr()
292 static int unix_mkname_bsd(struct sockaddr_un *sunaddr, int addr_len) in unix_mkname_bsd()
297 BUILD_BUG_ON(offset != offsetof(struct sockaddr_un, sun_path)); in unix_mkname_bsd()
371 struct sockaddr_un *sunname, in __unix_find_socket_byname()
387 struct sockaddr_un *sunname, in unix_find_socket_byname()
1071 static struct sock *unix_find_bsd(struct sockaddr_un *sunaddr, int addr_len, in unix_find_bsd()
1116 struct sockaddr_un *sunaddr, in unix_find_abstract()
1135 struct sockaddr_un *sunaddr, in unix_find_other()
1166 offsetof(struct sockaddr_un, sun_path) + 16, GFP_KERNEL); in unix_autobind()
1170 addr->len = offsetof(struct sockaddr_un, sun_path) + 6; in unix_autobind()
1209 static int unix_bind_bsd(struct sock *sk, struct sockaddr_un *sunaddr, in unix_bind_bsd()
1277 static int unix_bind_abstract(struct sock *sk, struct sockaddr_un *sunaddr, in unix_bind_abstract()
1322 struct sockaddr_un *sunaddr = (struct sockaddr_un *)uaddr; in unix_bind()
1326 if (addr_len == offsetof(struct sockaddr_un, sun_path) && in unix_bind()
1370 struct sockaddr_un *sunaddr = (struct sockaddr_un *)addr; in unix_dgram_connect()
1480 struct sockaddr_un *sunaddr = (struct sockaddr_un *)uaddr; in unix_stream_connect()
1751 DECLARE_SOCKADDR(struct sockaddr_un *, sunaddr, uaddr); in unix_getname()
1769 err = offsetof(struct sockaddr_un, sun_path); in unix_getname()
1902 DECLARE_SOCKADDR(struct sockaddr_un *, sunaddr, msg->msg_name); in unix_dgram_sendmsg()
2744 DECLARE_SOCKADDR(struct sockaddr_un *, sunaddr, in unix_stream_read_generic()
3289 offsetof(struct sockaddr_un, sun_path); in unix_seq_show()