Ethernet修改网卡名称

如何修改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

相关推荐

  1. Linux 修改文件名称

    2024-04-03 04:54:01       40 阅读
  2. ubuntu 如何修改主机名称

    2024-04-03 04:54:01       32 阅读
  3. linux修改终端前缀名称

    2024-04-03 04:54:01       21 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-03 04:54:01       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-03 04:54:01       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-03 04:54:01       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-03 04:54:01       18 阅读

热门阅读

  1. es6中的Object.assign

    2024-04-03 04:54:01       16 阅读
  2. 黑客攻击自己上班的公司会怎样?

    2024-04-03 04:54:01       12 阅读
  3. vue3的ref和reactive对比

    2024-04-03 04:54:01       17 阅读
  4. Android compose 使用指纹验证

    2024-04-03 04:54:01       16 阅读
  5. maya 遍历所有子节点

    2024-04-03 04:54:01       13 阅读
  6. 关于Kafka消息队列的深入学习

    2024-04-03 04:54:01       15 阅读
  7. 蓝桥杯_数学模板

    2024-04-03 04:54:01       14 阅读
  8. 2021年社招面试

    2024-04-03 04:54:01       16 阅读