[PATCH] [REPOST] Add ability to register class interfaces for network class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm reposting this patch since I haven't heard anything from you for a while. I'd like to at least get some feedback whether this is considered a good or bad thing.

See my earlier post why I want this patch in (http://marc.theaimsgroup.com/?l=linux-net&m=109758592121767&w=2).

- Timo

-- Original post --
Add functions to register class interfaces for network class.
Similar to the ones found in scsi subsystem.

Signed-off-by: Timo Teräs <ext-timo.teras@nokia.com>

--- linux-2.6.9-rc4.orig/net/core/net-sysfs.c 2004-10-12 13:23:35.106496312 +0300
+++ linux-2.6.9-rc4/net/core/net-sysfs.c 2004-10-12 13:24:29.177276304 +0300
@@ -448,3 +448,11 @@
{
return class_register(&net_class);
}
+
+int netdev_register_interface(struct class_interface *intf)
+{
+ intf->class = &net_class;
+ return class_interface_register(intf);
+}
+
+EXPORT_SYMBOL_GPL(netdev_register_interface);
--- linux-2.6.9-rc4.orig/include/linux/netdevice.h 2004-10-12 13:23:31.186092304 +0300
+++ linux-2.6.9-rc4/include/linux/netdevice.h 2004-10-12 13:24:29.179276000 +0300
@@ -951,6 +951,12 @@
extern char *net_sysctl_strdup(const char *s);
#endif


+#ifdef CONFIG_SYSFS
+extern int netdev_register_interface(struct class_interface *intf);
+#define netdev_unregister_interface(intf) \
+	class_interface_unregister(intf)
+#endif
+
  #endif /* __KERNEL__ */

  #endif	/* _LINUX_DEV_H */

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux