xref: /linux/include/net/netns/unix.h (revision b6e811383062f88212082714db849127fa95142c)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2a0a53c8bSDenis V. Lunev /*
3a0a53c8bSDenis V. Lunev  * Unix network namespace
4a0a53c8bSDenis V. Lunev  */
5a0a53c8bSDenis V. Lunev #ifndef __NETNS_UNIX_H__
6a0a53c8bSDenis V. Lunev #define __NETNS_UNIX_H__
7a0a53c8bSDenis V. Lunev 
8*b6e81138SKuniyuki Iwashima struct unix_table {
9*b6e81138SKuniyuki Iwashima 	spinlock_t		*locks;
10*b6e81138SKuniyuki Iwashima 	struct hlist_head	*buckets;
11*b6e81138SKuniyuki Iwashima };
12*b6e81138SKuniyuki Iwashima 
13a0a53c8bSDenis V. Lunev struct ctl_table_header;
14a0a53c8bSDenis V. Lunev struct netns_unix {
15*b6e81138SKuniyuki Iwashima 	struct unix_table	table;
16a0a53c8bSDenis V. Lunev 	int			sysctl_max_dgram_qlen;
17a0a53c8bSDenis V. Lunev 	struct ctl_table_header	*ctl;
18a0a53c8bSDenis V. Lunev };
19a0a53c8bSDenis V. Lunev 
20a0a53c8bSDenis V. Lunev #endif /* __NETNS_UNIX_H__ */
21