Home
last modified time | relevance | path

Searched refs:cn_msg (Results 1 – 16 of 16) sorted by relevance

/linux-2.6.39/drivers/w1/
Dw1_netlink.c34 char buf[sizeof(struct cn_msg) + sizeof(struct w1_netlink_msg)]; in w1_netlink_send()
35 struct cn_msg *m = (struct cn_msg *)buf; in w1_netlink_send()
53 struct cn_msg *msg = dev->priv; in w1_send_slave()
78 static int w1_process_search_command(struct w1_master *dev, struct cn_msg *msg, in w1_process_search_command()
99 static int w1_send_read_reply(struct cn_msg *msg, struct w1_netlink_msg *hdr, in w1_send_read_reply()
105 struct cn_msg *cm; in w1_send_read_reply()
108 data = kzalloc(sizeof(struct cn_msg) + in w1_send_read_reply()
115 cm = (struct cn_msg *)(data); in w1_send_read_reply()
119 memcpy(cm, msg, sizeof(struct cn_msg)); in w1_send_read_reply()
138 static int w1_process_command_io(struct w1_master *dev, struct cn_msg *msg, in w1_process_command_io()
[all …]
/linux-2.6.39/drivers/connector/
Dcn_proc.c36 #define CN_PROC_MSG_SIZE (sizeof(struct cn_msg) + sizeof(struct proc_event))
54 struct cn_msg *msg; in proc_fork_connector()
62 msg = (struct cn_msg*)buffer; in proc_fork_connector()
82 struct cn_msg *msg; in proc_exec_connector()
90 msg = (struct cn_msg*)buffer; in proc_exec_connector()
107 struct cn_msg *msg; in proc_id_connector()
116 msg = (struct cn_msg*)buffer; in proc_id_connector()
146 struct cn_msg *msg; in proc_sid_connector()
154 msg = (struct cn_msg *)buffer; in proc_sid_connector()
171 struct cn_msg *msg; in proc_exit_connector()
[all …]
Dconnector.c66 int cn_netlink_send(struct cn_msg *msg, u32 __group, gfp_t gfp_mask) in cn_netlink_send()
72 struct cn_msg *data; in cn_netlink_send()
127 struct cn_msg *msg = NLMSG_DATA(nlmsg_hdr(skb)); in cn_call_callback()
167 if (nlh->nlmsg_len < sizeof(struct cn_msg) || in cn_rx_skb()
187 void (*callback)(struct cn_msg *, struct netlink_skb_parms *)) in cn_add_callback() argument
Dcn_queue.c37 void (*callback)(struct cn_msg *, struct netlink_skb_parms *)) in cn_queue_alloc_callback_entry() argument
74 void (*callback)(struct cn_msg *, struct netlink_skb_parms *)) in cn_queue_add_callback() argument
/linux-2.6.39/include/linux/
Dconnector.h65 struct cn_msg { struct
108 void (*callback) (struct cn_msg *, struct netlink_skb_parms *);
124 void (*callback)(struct cn_msg *, struct netlink_skb_parms *));
126 int cn_netlink_send(struct cn_msg *, u32, gfp_t);
130 void (*callback)(struct cn_msg *, struct netlink_skb_parms *));
/linux-2.6.39/drivers/md/
Ddm-log-userspace-transfer.c32 static struct cn_msg *prealloced_cn_msg;
59 struct cn_msg *msg = prealloced_cn_msg; in dm_ulog_sendto_server()
61 memset(msg, 0, sizeof(struct cn_msg)); in dm_ulog_sendto_server()
82 static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) in fill_pkg()
133 static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in cn_ulog_callback()
176 int overhead_size = sizeof(struct dm_ulog_request) + sizeof(struct cn_msg); in dm_consult_userspace()
199 memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - sizeof(struct cn_msg)); in dm_consult_userspace()
271 prealloced_ulog_tfr = prealloced + sizeof(struct cn_msg); in dm_ulog_tfr_init()
/linux-2.6.39/Documentation/connector/
Ducon.c60 static int netlink_send(int s, struct cn_msg *msg) in netlink_send()
66 struct cn_msg *m; in netlink_send()
68 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); in netlink_send()
118 struct cn_msg *data; in main()
182 data = (struct cn_msg *)buf; in main()
236 data = (struct cn_msg *)NLMSG_DATA(reply); in main()
Dcn_test.c38 static void cn_test_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in cn_test_callback()
56 struct cn_msg *msg = NULL;
74 msg = (struct cn_msg *)NLMSG_DATA(nlh);
131 struct cn_msg *m; in cn_test_timer_func()
Dconnector.txt26 int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink…
27 void cn_netlink_send(struct cn_msg *msg, u32 __group, int gfp_mask);
39 be dereferenced to struct cn_msg *.
41 struct cn_msg
56 int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink…
64 cn_msg and the sender's credentials
74 int cn_netlink_send(struct cn_msg *msg, u32 __groups, int gfp_mask);
80 struct cn_msg * - message header(with attached data).
135 cn_msg [main connector's message header] contains u32 seq and u32 ack
/linux-2.6.39/Documentation/w1/
Dw1.netlink17 [struct cn_msg] - connector header.
72 [cn_msg][w1_netlink_msg][w1_netlink_cmd]
73 cn_msg.len = sizeof(struct w1_netlink_msg) +
83 cn_msg (CN_W1_IDX.CN_W1_VAL as id, len is equal to sizeof(struct
95 [cn_msg]
101 [cn_msg, ack = 1 and increasing, 0 means the last message,
111 cn_msg->len = sizeof(struct w1_netlink_msg) +
116 [cn_msg]
130 of the w1_netlink_cmd structure and cn_msg.len will be equal to the sum
133 w1_netlink_cmd attached), reply will contain only cn_msg and w1_netlink_msg
/linux-2.6.39/drivers/staging/hv/tools/
Dhv_kvp_daemon.c289 netlink_send(int fd, struct cn_msg *msg) in netlink_send()
297 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); in netlink_send()
325 struct cn_msg *message; in main()
328 struct cn_msg *incoming_cn_msg; in main()
364 message = (struct cn_msg *)kvp_send_buffer; in main()
394 incoming_cn_msg = (struct cn_msg *)NLMSG_DATA(incoming_msg); in main()
/linux-2.6.39/drivers/staging/pohmelfs/
Dconfig.c237 static int pohmelfs_send_reply(int err, int msg_num, int action, struct cn_msg *msg, struct pohmelf… in pohmelfs_send_reply()
245 memcpy(&ack->msg, msg, sizeof(struct cn_msg)); in pohmelfs_send_reply()
250 ack->msg.len = sizeof(struct pohmelfs_cn_ack) - sizeof(struct cn_msg); in pohmelfs_send_reply()
260 static int pohmelfs_cn_disp(struct cn_msg *msg) in pohmelfs_cn_disp()
292 static int pohmelfs_cn_dump(struct cn_msg *msg) in pohmelfs_cn_dump()
331 static int pohmelfs_cn_flush(struct cn_msg *msg) in pohmelfs_cn_flush()
379 static int pohmelfs_cn_ctl(struct cn_msg *msg, int action) in pohmelfs_cn_ctl()
487 static int pohmelfs_cn_crypto(struct cn_msg *msg) in pohmelfs_cn_crypto()
524 static void pohmelfs_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in pohmelfs_cn_callback()
Dnetfs.h141 struct cn_msg msg;
/linux-2.6.39/drivers/staging/hv/
Dhv_kvp.c81 struct cn_msg *msg; in kvp_register()
111 kvp_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in kvp_cn_callback()
136 struct cn_msg *msg; in kvp_send_key()
/linux-2.6.39/drivers/block/drbd/
Ddrbd_nl.c135 void drbd_nl_send_reply(struct cn_msg *, int);
2222 static void drbd_connector_callback(struct cn_msg *req, struct netlink_skb_parms *nsp) in drbd_connector_callback()
2226 struct cn_msg *cn_reply; in drbd_connector_callback()
2230 int reply_size = sizeof(struct cn_msg) in drbd_connector_callback()
2354 char buffer[sizeof(struct cn_msg)+ in drbd_bcast_state()
2358 struct cn_msg *cn_reply = (struct cn_msg *) buffer; in drbd_bcast_state()
2387 char buffer[sizeof(struct cn_msg)+ in drbd_bcast_ev_helper()
2391 struct cn_msg *cn_reply = (struct cn_msg *) buffer; in drbd_bcast_ev_helper()
2422 struct cn_msg *cn_reply; in drbd_bcast_ee()
2440 sizeof(struct cn_msg)+ in drbd_bcast_ee()
[all …]
/linux-2.6.39/drivers/video/
Duvesafb.c71 static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in uvesafb_cn_callback()
146 struct cn_msg *m; in uvesafb_exec()