|
@@ -79,8 +79,9 @@ void cn_queue_wrapper(struct work_struct *work)
|
|
container_of(work, struct cn_callback_entry, work);
|
|
container_of(work, struct cn_callback_entry, work);
|
|
struct cn_callback_data *d = &cbq->data;
|
|
struct cn_callback_data *d = &cbq->data;
|
|
struct cn_msg *msg = NLMSG_DATA(nlmsg_hdr(d->skb));
|
|
struct cn_msg *msg = NLMSG_DATA(nlmsg_hdr(d->skb));
|
|
|
|
+ struct netlink_skb_parms *nsp = &NETLINK_CB(d->skb);
|
|
|
|
|
|
- d->callback(msg);
|
|
|
|
|
|
+ d->callback(msg, nsp);
|
|
|
|
|
|
d->destruct_data(d->ddata);
|
|
d->destruct_data(d->ddata);
|
|
d->ddata = NULL;
|
|
d->ddata = NULL;
|
|
@@ -90,7 +91,7 @@ void cn_queue_wrapper(struct work_struct *work)
|
|
|
|
|
|
static struct cn_callback_entry *
|
|
static struct cn_callback_entry *
|
|
cn_queue_alloc_callback_entry(char *name, struct cb_id *id,
|
|
cn_queue_alloc_callback_entry(char *name, struct cb_id *id,
|
|
- void (*callback)(struct cn_msg *))
|
|
|
|
|
|
+ void (*callback)(struct cn_msg *, struct netlink_skb_parms *))
|
|
{
|
|
{
|
|
struct cn_callback_entry *cbq;
|
|
struct cn_callback_entry *cbq;
|
|
|
|
|
|
@@ -124,7 +125,7 @@ int cn_cb_equal(struct cb_id *i1, struct cb_id *i2)
|
|
}
|
|
}
|
|
|
|
|
|
int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id,
|
|
int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id,
|
|
- void (*callback)(struct cn_msg *))
|
|
|
|
|
|
+ void (*callback)(struct cn_msg *, struct netlink_skb_parms *))
|
|
{
|
|
{
|
|
struct cn_callback_entry *cbq, *__cbq;
|
|
struct cn_callback_entry *cbq, *__cbq;
|
|
int found = 0;
|
|
int found = 0;
|