![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * MCTP per-net structures 0004 */ 0005 0006 #ifndef __NETNS_MCTP_H__ 0007 #define __NETNS_MCTP_H__ 0008 0009 #include <linux/mutex.h> 0010 #include <linux/types.h> 0011 0012 struct netns_mctp { 0013 /* Only updated under RTNL, entries freed via RCU */ 0014 struct list_head routes; 0015 0016 /* Bound sockets: list of sockets bound by type. 0017 * This list is updated from non-atomic contexts (under bind_lock), 0018 * and read (under rcu) in packet rx 0019 */ 0020 struct mutex bind_lock; 0021 struct hlist_head binds; 0022 0023 /* tag allocations. This list is read and updated from atomic contexts, 0024 * but elements are free()ed after a RCU grace-period 0025 */ 0026 spinlock_t keys_lock; 0027 struct hlist_head keys; 0028 0029 /* MCTP network */ 0030 unsigned int default_net; 0031 0032 /* neighbour table */ 0033 struct mutex neigh_lock; 0034 struct list_head neighbours; 0035 }; 0036 0037 #endif /* __NETNS_MCTP_H__ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |