unregister a net device unregister_netdev is used to delete a net device. In fact, it equals: 1234rtnl_lock();rollback_registered_many( a temp list with a single net device);list_add_tail(&dev->todo_list, &net_tod 2013-08-02 Netdev #netdev
draft: how to select a realtime task when schedule 0.1. summaryThere is a struct rt_rq in struct rq. struct rt_rq is used to store allthe realtime task in current struct rq. which has a struct rt_prio_array active. 2013-07-26 Sched #sched
draft: how to pick next task 0.1. summaryThere are four sched_class,stop_sched_class --> rt_sched_class --> fair_sched_class --> idle_sched_class They are linked one by one staticly by struct sched_class->next by thei 2013-07-26 Sched #sched
draft: struct rq 0.1. summary: struct rq is basic data structure. there is a realtime process(es) and normal process(es) are stored indifferent sub-runqueue *_rq of rq? 12426 struct cfs_rq cfs;427 st 2013-07-26 Sched #sched
draft: isolcpus Isolcpus 0.1. kthread has wrong affinity when use isolcpus in bootlinewhen boot kernel with isolcpus in grub command lines, only init thread has expected affinity, which exclude the isolated cpus. whi 2013-07-10 Sched #sched
How Kernel Thread Is Created JUN 27TH, 2013 | COMMENTSHow to create a kernel thread 0.1. create a kthread by kthread_createkthread_create(threadfn, data, namefmt, arg...) example: file drivers/char/apm-emulation.c 1651 2013-06-27 Sched #sched
How to submit kernel patch by git-mail 123git send-email --annotate --subject-prefix="PATCH v2 net-next" \ --in-reply-to=The_previous_email_message_id_to_be_replied \ --smtp-debug --to MAINTENACE_person_email --cc CCLIST HEAD^ 2013-06-26 Tools #git
PROMISC in net device->flag 1. summarypromisc is one bit of struct net_device’s flag, which is used to indicate if a device is in promisc status. 12345678910111230 /* Standard interface flags (netdevice->flags). */31 #define 2013-06-23 Netdev #netlink
Netlink in kernel(continue) 0.1. netlink介绍 netlink是一种用于内核和用户空间进行数据交互的socket。 关于netlink的具体介绍,google给出更好的解释。 netlink是socket的一种,其的family号是PF_NETLINK, netlink包括很多种proto,并且用户可以根据自己的需要进行扩展。每个netlinksocket都有一个pid,该pid在所属proto下是唯一的。 在 2013-03-15 Netlink #netlink
netlink grab 对nl_table的操作:读操作: netlink_lock_table 和 netlink_unlock_table写操作netlink_table_grab 和 netlink_table_ungrab 原子变量nl_table_users 用来保存对nl_table的读者引用计数。 只要没有进行的写者,即使有n个写者在等待,m个读者也可以同时读。当没有任何读者时,写着才可以获得权限 2013-03-11 Netlink #netlink