genetlink: synchronize socket closing and family removal
[firefly-linux-kernel-4.4.55.git] / include / net / genetlink.h
index 2ea2c55bdc8788014aedaf113f563b3bd1941642..6c92415311cacb3ee39ff768edc3d2a4461e922f 100644 (file)
@@ -35,7 +35,10 @@ struct genl_info;
  *     undo operations done by pre_doit, for example release locks
  * @mcast_bind: a socket bound to the given multicast group (which
  *     is given as the offset into the groups array)
- * @mcast_unbind: a socket was unbound from the given multicast group
+ * @mcast_unbind: a socket was unbound from the given multicast group.
+ *     Note that unbind() will not be called symmetrically if the
+ *     generic netlink family is removed while there are still open
+ *     sockets.
  * @attrbuf: buffer to store parsed attributes
  * @family_list: family list
  * @mcgrps: multicast groups used by this family (private)