Chinaunix首页 | 论坛 | 博客
  • 博客访问: 402064
  • 博文数量: 124
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 872
  • 用 户 组: 普通用户
  • 注册时间: 2018-03-29 14:38
个人简介

默默的一块石头

文章分类

全部博文(124)

文章存档

2022年(26)

2021年(10)

2020年(28)

2019年(60)

我的朋友

发布时间:2020-07-18 15:40:13

https://blog.csdn.net/farmwang/article/details/54233975skbuffs是那些linux内核处理网络分组的缓存。网卡收到分组后,将它们放进skbuff,然后再传送给网络堆栈。网络堆栈一直要用到skbuff。(1) struct sk_buff--用于维护socket buffer状态和描述信息(2) header data--独立于sk_buff结构体的数据缓冲区,用来.........【阅读全文】

阅读(2422) | 评论(0) | 转发(0)

发布时间:2020-07-13 20:43:09

As a result, the TCP output engine is mildly non-trivial. Add in variables such as support hardware checksumming offload on the network card, and TCP segmentation offload, and things get even more interesting.Here we can see that the TCP socket maintains a doubly linked list of all pending outp.........【阅读全文】

阅读(1747) | 评论(0) | 转发(0)

发布时间:2020-06-11 10:59:42

/* * Default Socket Callbacks */static void sock_def_wakeup(struct sock *sk){ struct socket_wq *wq; rcu_read_lock(); wq = rcu_dereference(sk->sk_wq); if (wq_has_sleeper(wq)) wake_up_interruptible_all(&wq->wait); rcu_read_unlock();}void sock_init.........【阅读全文】

阅读(1447) | 评论(0) | 转发(0)

发布时间:2020-06-04 16:47:57

https://jin-yang.github.io/post/kernel-signal-introduce.html信号是进程间通信机制中唯一的异步通信机制,一个进程不必通过任何操作来等待信号的到达,事实上,进程也不知道信号到底什么时候到达。信号机制除了基本通知功能外,还可以传递附加信息。每个信号在 signal.h 头文件中通过宏进行定义,.........【阅读全文】

阅读(1450) | 评论(0) | 转发(0)

发布时间:2020-06-01 16:16:39

1.task.ko#include #include #include #include #include #include #include #include struct pid * pidtask = NULL;static int pause(void){ while (!signal_pending(current).........【阅读全文】

阅读(1527) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册