默默的一块石头
发布时间:2019-11-01 17:31:41
int main(int argc, char *argv[]) { _cleanup_free_ char *cgroup = NULL; int fd_ctrl = -1, fd_uevent = -1; int r; r = parse_argv(.........【阅读全文】
发布时间:2019-11-01 17:30:22
int bus_match(struct device *dev, struct device_driver *drv);int bus_match(struct device *dev, struct device_driver *drv){ const struct of_device_id * pof_match_table = drv->of_match_table; struct device * pdev; for (pof_match_table; pof_match_table->name[0]; po.........【阅读全文】
发布时间:2019-11-01 09:57:16
2.移除device于net_device之间的设定/* Set the sysfs physical device reference for the network logical device * if set prior to registration will cause a symlink during initialization. */#define SET_NETDEV_DEV(net, pdev) ((net)->dev.parent = (pdev))......【阅读全文】
发布时间:2019-10-31 15:21:10
softnet_data是个percpu变量/* * Incoming packets are placed on per-cpu queues */struct softnet_data { struct Qdisc *output_queue; struct Qdisc **output_queue_tailp; // napi->poll_list结构挂入这个list,包括NAPI接口的driver以及非NAPI接口的drive.........【阅读全文】
发布时间:2019-10-30 10:57:39
1. 固定一个MAC地址,特别是在使用多个虚拟机的时候linux环境下:用root身份登录,在/etc/rc.d/rc.local里加上这三句ifconfig eth0 downifconfig eth0 hw ether 00:0C:18:EF:FF:EDifconfig eth0 up这样重新reboot后就不怕MAC复原了。2. ifconfig命令(转载http://www.cnblogs.com/taobataoma/archive/2007/12.........【阅读全文】