Lines Matching refs:sockaddr_un

147 static unsigned int unix_abstract_hash(struct sockaddr_un *sunaddr,  in unix_abstract_hash()
243 static struct unix_address *unix_create_addr(struct sockaddr_un *sunaddr, in unix_create_addr()
272 static int unix_validate_addr(struct sockaddr_un *sunaddr, int addr_len) in unix_validate_addr()
274 if (addr_len <= offsetof(struct sockaddr_un, sun_path) || in unix_validate_addr()
284 static int unix_mkname_bsd(struct sockaddr_un *sunaddr, int addr_len) in unix_mkname_bsd()
289 BUILD_BUG_ON(offset != offsetof(struct sockaddr_un, sun_path)); in unix_mkname_bsd()
363 struct sockaddr_un *sunname, in __unix_find_socket_byname()
379 struct sockaddr_un *sunname, in unix_find_socket_byname()
1056 static struct sock *unix_find_bsd(struct sockaddr_un *sunaddr, int addr_len, in unix_find_bsd()
1101 struct sockaddr_un *sunaddr, in unix_find_abstract()
1120 struct sockaddr_un *sunaddr, in unix_find_other()
1151 offsetof(struct sockaddr_un, sun_path) + 16, GFP_KERNEL); in unix_autobind()
1155 addr->len = offsetof(struct sockaddr_un, sun_path) + 6; in unix_autobind()
1195 static int unix_bind_bsd(struct sock *sk, struct sockaddr_un *sunaddr, in unix_bind_bsd()
1264 static int unix_bind_abstract(struct sock *sk, struct sockaddr_un *sunaddr, in unix_bind_abstract()
1310 struct sockaddr_un *sunaddr = (struct sockaddr_un *)uaddr; in unix_bind()
1314 if (addr_len == offsetof(struct sockaddr_un, sun_path) && in unix_bind()
1356 struct sockaddr_un *sunaddr = (struct sockaddr_un *)addr; in unix_dgram_connect()
1474 struct sockaddr_un *sunaddr = (struct sockaddr_un *)uaddr; in unix_stream_connect()
1727 DECLARE_SOCKADDR(struct sockaddr_un *, sunaddr, uaddr); in unix_getname()
1745 err = offsetof(struct sockaddr_un, sun_path); in unix_getname()
1878 DECLARE_SOCKADDR(struct sockaddr_un *, sunaddr, msg->msg_name); in unix_dgram_sendmsg()
2779 DECLARE_SOCKADDR(struct sockaddr_un *, sunaddr, in unix_stream_read_generic()
3323 offsetof(struct sockaddr_un, sun_path); in unix_seq_show()