diff options
| author | Philipp Reisner <philipp.reisner@linbit.com> | 2009-10-01 22:40:05 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-10-02 13:54:01 -0400 |
| commit | 7069331dbe7155f23966f5944109f909fea0c7e4 (patch) | |
| tree | 5ea80628d1bf5e776a540ee84814f085c9adff04 /include/linux | |
| parent | 293500a23f4b0698cb04abfecfc9a954d8ab2742 (diff) | |
connector: Provide the sender's credentials to the callback
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Acked-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/connector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/connector.h b/include/linux/connector.h index 05a7a14126d8..545728e20b63 100644 --- a/include/linux/connector.h +++ b/include/linux/connector.h | |||
| @@ -136,7 +136,7 @@ struct cn_callback_data { | |||
| 136 | void *ddata; | 136 | void *ddata; |
| 137 | 137 | ||
| 138 | struct sk_buff *skb; | 138 | struct sk_buff *skb; |
| 139 | void (*callback) (struct cn_msg *); | 139 | void (*callback) (struct cn_msg *, struct netlink_skb_parms *); |
| 140 | 140 | ||
| 141 | void *free; | 141 | void *free; |
| 142 | }; | 142 | }; |
| @@ -167,11 +167,11 @@ struct cn_dev { | |||
| 167 | struct cn_queue_dev *cbdev; | 167 | struct cn_queue_dev *cbdev; |
| 168 | }; | 168 | }; |
| 169 | 169 | ||
| 170 | int cn_add_callback(struct cb_id *, char *, void (*callback) (struct cn_msg *)); | 170 | int cn_add_callback(struct cb_id *, char *, void (*callback) (struct cn_msg *, struct netlink_skb_parms *)); |
| 171 | void cn_del_callback(struct cb_id *); | 171 | void cn_del_callback(struct cb_id *); |
| 172 | int cn_netlink_send(struct cn_msg *, u32, gfp_t); | 172 | int cn_netlink_send(struct cn_msg *, u32, gfp_t); |
| 173 | 173 | ||
| 174 | int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id, void (*callback)(struct cn_msg *)); | 174 | int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id, void (*callback)(struct cn_msg *, struct netlink_skb_parms *)); |
| 175 | void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id); | 175 | void cn_queue_del_callback(struct cn_queue_dev *dev, struct cb_id *id); |
| 176 | 176 | ||
| 177 | int queue_cn_work(struct cn_callback_entry *cbq, struct work_struct *work); | 177 | int queue_cn_work(struct cn_callback_entry *cbq, struct work_struct *work); |
