mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
![Daniel Borkmann](/assets/img/avatar_default.png)
netdev_kobject_init() is only being called from __init context, that is, net_dev_init(), so annotate it with __init as well, thus the kernel can take this as a hint that the function is used only during the initialization phase and free up used memory resources after its invocation. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
11 lines
368 B
C
11 lines
368 B
C
#ifndef __NET_SYSFS_H__
|
|
#define __NET_SYSFS_H__
|
|
|
|
int __init netdev_kobject_init(void);
|
|
int netdev_register_kobject(struct net_device *);
|
|
void netdev_unregister_kobject(struct net_device *);
|
|
int net_rx_queue_update_kobjects(struct net_device *, int old_num, int new_num);
|
|
int netdev_queue_update_kobjects(struct net_device *net,
|
|
int old_num, int new_num);
|
|
|
|
#endif
|