内核通知连

2021-01-24, updated 2021-09-12

定义链

用于通知信息的处理函数,包括要调用的回调函数

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
// include\linux\notifier.h
struct notifier_block;

typedef	int (*notifier_fn_t)(struct notifier_block *nb,
			unsigned long action, void *data);

struct notifier_block {
	notifier_fn_t notifier_call;
	struct notifier_block __rcu *next;
	int priority;
};

网络子系统的通知链

words: 161 tags: