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

默默的一块石头

文章分类

全部博文(124)

文章存档

2022年(26)

2021年(10)

2020年(28)

2019年(60)

我的朋友

发布时间:2022-02-22 14:36:47

accept睡眠int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr,   int __user *upeer_addrlen, int flags){ err = sock->ops->accept(sock, newsock, sock->file->f_flags, false);}int inet_accept(struct socket *sock, struct socket *newsock, int flags, bool kern){ struct sock *sk2.........【阅读全文】

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

发布时间:2022-02-16 11:45:46

1.插入struct proto tcp_prot = { .name = "TCP", .owner = THIS_MODULE, .hash = inet_hash,}Feb 16 10:26:36 chro kernel: [   14.108487]  __inet_hash+0x7d/0x2f0Feb 16 10:26:36 chro kernel: [   14.108488]  inet_hash+0x28/0x50Feb 16 10:26:36 chro kernel: [   .........【阅读全文】

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

发布时间:2022-01-26 10:07:46

1.test.c#include linux/module.h#include linux/init.h#include linux/export.hstatic DECLARE_WAIT_QUEUE_HEAD(test_wait);static wait_queue_head_t * get_wait_queue(void){ return &test_wait;}EXPORT_SYMBOL(get_wait_queue);static int flag = 0;static int getflag(void){ return flag;}.........【阅读全文】

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

发布时间:2022-01-24 17:04:20

void add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry){ unsigned long flags; wq_entry->flags |= WQ_FLAG_EXCLUSIVE; spin_lock_irqsave(&wq_head->lock, flags); __add_wait_queue_entry_tail(wq_head, wq_entry); spin_unlock_irqrestore(&wq_head->lock, flags).........【阅读全文】

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

发布时间:2022-01-24 15:28:03

对Linux系统休眠的理解......【阅读全文】

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

登录 注册