diff options
Diffstat (limited to 'include/net/phonet/pn_dev.h')
| -rw-r--r-- | include/net/phonet/pn_dev.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/net/phonet/pn_dev.h b/include/net/phonet/pn_dev.h index 44c923c9e21d..d7b989ca3d63 100644 --- a/include/net/phonet/pn_dev.h +++ b/include/net/phonet/pn_dev.h | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | struct phonet_device_list { | 26 | struct phonet_device_list { |
| 27 | struct list_head list; | 27 | struct list_head list; |
| 28 | spinlock_t lock; | 28 | struct mutex lock; |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | struct phonet_device_list *phonet_device_list(struct net *net); | 31 | struct phonet_device_list *phonet_device_list(struct net *net); |
| @@ -47,6 +47,12 @@ u8 phonet_address_get(struct net_device *dev, u8 addr); | |||
| 47 | int phonet_address_lookup(struct net *net, u8 addr); | 47 | int phonet_address_lookup(struct net *net, u8 addr); |
| 48 | void phonet_address_notify(int event, struct net_device *dev, u8 addr); | 48 | void phonet_address_notify(int event, struct net_device *dev, u8 addr); |
| 49 | 49 | ||
| 50 | int phonet_route_add(struct net_device *dev, u8 daddr); | ||
| 51 | int phonet_route_del(struct net_device *dev, u8 daddr); | ||
| 52 | void rtm_phonet_notify(int event, struct net_device *dev, u8 dst); | ||
| 53 | struct net_device *phonet_route_get(struct net *net, u8 daddr); | ||
| 54 | struct net_device *phonet_route_output(struct net *net, u8 daddr); | ||
| 55 | |||
| 50 | #define PN_NO_ADDR 0xff | 56 | #define PN_NO_ADDR 0xff |
| 51 | 57 | ||
| 52 | extern const struct file_operations pn_sock_seq_fops; | 58 | extern const struct file_operations pn_sock_seq_fops; |
