【linux系列】融会贯通 linux 内核编程集合 -- logsys练习项目

【linux系列】融会贯通 linux 内核编程集合 -- logsys练习项目

logsys

  • This is a comprehensive exercise project for linux kernel modification, including adding system calls, modifying the xfs file system, adding block device drivers, timer usage and page fault interrupt statistics.

  • We have combined these five parts into a log management system, of course the effect is very simple, but I believe it is enough for an exercise.

  • In addition to providing the source code of the final effect, a detailed tutorial on the operation of different modules is also specially prepared. Of course, in order to integrate it, we finally made some adjustments, but starting from the simplest, I believe you can understand the linux kernel better.

  • 这是linux内核修改的一个综合练习项目,包含了添加系统调用、修改xfs文件系统、添加块设备驱动、定时器使用和缺页中断数统计。

  • 我们将这五个部分融合成了一个日志管理系统,当然效果非常简陋,不过我相信用来作为练习已经够用了。

  • 除了提供了最终效果的源码外,还专门准备了不同模块操作的详细教程,当然为了融合起来我们最终做了一些调整,但是从最简单的开始我相信你能更加理解linux内核。

Environment

  • 虚拟机: VMware workstation pro 16
  • 虚拟机操作系统: ubuntu-20.04.3-desktop-amd64
  • 原系统内核版本:5.11.0-46-generic
  • 内核源码版本:5.11.1

Structure

  • driver – Contains a custom block device driver module
  • pagefault – Contains a custom page fault interrupt statistics module
  • syscall – Contains system call test files
  • xfs – Most of the content in this folder comes from the linux kernel, we just modified part of the files
  • main.cpp – The main program, including the use of system calls and user logic processing
  • start.sh – Startup scripts, including preparation of various modules
  • clean.sh – Clean up scripts, remove related modules

Tutorials

Related

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

鞠杉

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值