【android驱动开发十二】内核子系统大概-进阶

“近乎全量”的 Linux 内核子系统速查表——
把官方 MAINTAINERS 文件、源码树顶层目录、/sys/bus/sys/class 以及各架构共性模块全部摊平,去重、归并后得到 8 大领域、68 个子系统
可以当字典用:以后缺啥,直接 make menuconfigls drivers/xxx 按名字搜即可。


一、进程 & CPU 管理(6)

  1. Scheduling —— kernel/sched/
  2. IRQ —— kernel/irq/
  3. Timers —— kernel/time/
  4. Workqueue —— kernel/workqueue.c
  5. RCU —— kernel/rcu/
  6. CPU Hotplug —— kernel/cpu.c

二、内存 & 虚拟空间(7)
7. MM(Memory Management)—— mm/
8. Virtual Memory(VMA、page fault)—— 同上
9. SLAB / SLUB —— mm/slab.c mm/slub.c
10. KASAN /

### Linux Kernel DRM Subsystem Documentation and Overview The Direct Rendering Manager (DRM) is a subsystem within the Linux kernel that manages graphics hardware. Initially designed for managing frame buffers, it has evolved into a comprehensive system for handling GPU operations including memory management, command submission, and display control. #### Key Features of DRM Subsystem - **Security Enforcement**: Access to certain functionalities requires specific privileges; for instance, only callers possessing the `SYSADMIN` capability are permitted under configurations like `DRM_ROOT_ONLY`[^1]. - **Device Management**: The DRM core provides APIs for initializing devices, setting up connectors, encoders, CRTCs (cathode ray tube controllers), and planes which together form part of the KMS (Kernel Mode Setting). - **Memory Management**: Efficiently handles allocation and mapping of video memory through GEM (Graphics Execution Manager). This ensures smooth operation when dealing with large textures or complex rendering tasks. - **User Space Interface**: Communicates via ioctls allowing applications such as X servers or Wayland compositors direct access while maintaining security boundaries between processes. ```bash # Example command showing how one might interact with DRM using ioctl calls from user space. ioctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &resources); ``` For developers interested in contributing or understanding more about this area, detailed documentation can be found directly inside the source tree at paths similar to: - `/usr/src/linux/Documentation/gpu/drm-internals.rst` - `/usr/src/linux/drivers/gpu/drm/core/Kconfig` These documents provide insights not just limited to API usage but also design philosophies behind various components making up modern implementations of DRM.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

每天都爱小燕子的大佬

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

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

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

打赏作者

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

抵扣说明:

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

余额充值