如何修改Ethernet网卡名称
kernel/common/net/core/dev.c
----------------------------------------------------------------------
8849/**
8850 * register_netdev - register a network device
8851 * @dev: device to register
8852 *
8853 * Take a completed network device structure and add it to the kernel
8854 * interfaces. A %NETDEV_REGISTER message is sent to the netdev notifier
8855 * chain. 0 is returned on success. A negative errno code is returned
8856 * on a failure to set up the device, or if the name is a duplicate.
8857 *
8858 * This is a wrapper around register_netdevice that takes the rtnl semaphore
8859 * and expands the device name if you passed a format string to
8860 * alloc_netdev.
8861 */
8862int register_netdev(struct net_device *dev)
8863{
8864 int err;
8865
8866 if (rtnl_lock_killable())
8867 retu