Merge tag 'tty-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
[linux-2.6-microblaze.git] / include / linux / connector.h
index 487350b..cec2d99 100644 (file)
@@ -90,13 +90,19 @@ void cn_del_callback(const struct cb_id *id);
  *             If @group is not zero, then message will be delivered
  *             to the specified group.
  * @gfp_mask:  GFP mask.
+ * @filter:     Filter function to be used at netlink layer.
+ * @filter_data:Filter data to be supplied to the filter function
  *
  * It can be safely called from softirq context, but may silently
  * fail under strong memory pressure.
  *
  * If there are no listeners for given group %-ESRCH can be returned.
  */
-int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 group, gfp_t gfp_mask);
+int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid,
+                        u32 group, gfp_t gfp_mask,
+                        int (*filter)(struct sock *dsk, struct sk_buff *skb,
+                                      void *data),
+                        void *filter_data);
 
 /**
  * cn_netlink_send - Sends message to the specified groups.