上一页 1 2 3 4 5 6 7 8 9 10 ··· 41 下一页
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/device_link.html 默认情况下,驱动核心仅强制执行设备之间的依赖关系,这些依赖关系源自设备层次结构中的父/子关系:在挂起、恢复或关闭系统时,设备的顺序是基于这种关系的,即子设备总是在其父设备 阅读全文
posted @ 2023-12-10 14:50 dolinux 阅读(238) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/dma-buf.html# DMA-BUF缓冲区共享和同步 DMA-BUF子系统提供了一个框架,用于在多个设备驱动程序和子系统之间共享硬件(DMA)访问的缓冲区,并用于同步异步硬件访问。 例如,drm的“ 阅读全文
posted @ 2023-12-10 14:39 dolinux 阅读(2877) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/ioctl.html ioctl基于接口 ioctl()是应用程序与设备驱动程序进行接口交互的最常见方式。它灵活且易于通过添加新命令进行扩展,并且可以通过字符设备、块设备以及套接字和其他特殊文件描述符进行 阅读全文
posted @ 2023-12-10 14:30 dolinux 阅读(215) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/infrastructure.html# 基本设备驱动程序模型结构 设备驱动程序基础 设备驱动程序DMA管理 设备驱动程序即插即用支持 用户空间IO设备 阅读全文
posted @ 2023-12-10 14:17 dolinux 阅读(29) 评论(0) 推荐(0)
摘要: 原文: https://www.kernel.org/doc/html/v6.6/driver-api/basics.html#reference-counting 驱动程序的进入和退出点 驱动程序设备表 延迟和调度例程 时间和定时器例程 高分辨率定时器 等待队列和唤醒事件 内部函数 引用计数 原子 阅读全文
posted @ 2023-12-10 14:10 dolinux 阅读(19) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/porting.html 将驱动程序移植到新的驱动模型 Patrick Mochel 2003年1月7日 概述 请参阅Documentation/driver-api/drive 阅读全文
posted @ 2023-12-10 14:02 dolinux 阅读(35) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/platform.html 平台设备和驱动程序 请参阅<linux/platform_device.h>以获取与平台总线的驱动程序模型接口相关的信息:platform_devic 阅读全文
posted @ 2023-12-10 13:50 dolinux 阅读(79) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/driver.html 设备驱动程序 请参阅结构体device_driver的kerneldoc。 分配 设备驱动程序是静态分配的结构。尽管系统中可能有多个驱动程序支持的设备,但 阅读全文
posted @ 2023-12-10 13:17 dolinux 阅读(66) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/devres.html Devres - 管理设备资源 Tejun Heo teheo@suse.de 首稿日期:2007年1月10日 1. 简介 在尝试将libata转换为使用 阅读全文
posted @ 2023-12-10 13:04 dolinux 阅读(125) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/device.html 设备基本结构 请参阅内核文档以了解 struct device 的结构。 编程接口 发现设备的总线驱动程序使用以下方法将设备注册到核心: int devi 阅读全文
posted @ 2023-12-10 12:59 dolinux 阅读(80) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/design-patterns.html 设备驱动设计模式 这份文档描述了设备驱动中常见的设计模式。子系统维护者可能会要求驱动开发者遵循这些设计模式。 状态容器 containe 阅读全文
posted @ 2023-12-10 12:56 dolinux 阅读(59) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/bus.html 总线类型 定义 请参阅结构体bus_type的内核文档。 int bus_register(struct bus_type * bus); 声明 内核中的每个总 阅读全文
posted @ 2023-12-10 12:55 dolinux 阅读(57) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/binding.html 驱动绑定 驱动绑定是将设备与能够控制它的设备驱动程序关联起来的过程。通常由总线驱动程序处理这一过程,因为总线特定的结构用于表示设备和驱动程序。使用通用设 阅读全文
posted @ 2023-12-10 12:51 dolinux 阅读(34) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/index.html Driver Model(驱动程序模型) Driver Binding(驱动绑定) Bus Types(总线类型) Device Driver Design 阅读全文
posted @ 2023-12-10 12:48 dolinux 阅读(27) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/hwspinlock.html 硬件自旋锁框架 简介 硬件自旋锁模块为异构处理器和不在单一共享操作系统下运行的处理器之间的同步和互斥提供硬件辅助。 例如,OMAP4具有双核Cortex-A9、双核Cortex- 阅读全文
posted @ 2023-12-10 12:44 dolinux 阅读(371) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/percpu-rw-semaphore.html "Percpu rw semaphores" 是一种新的读写信号量设计,针对读取操作进行了优化。 传统的读写信号量存在一个问题,即当多个核心获取读取锁时,包含信 阅读全文
posted @ 2023-12-10 12:35 dolinux 阅读(188) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/preempt-locking.html 在可抢占内核下的适当锁定:保持内核代码的可抢占安全 作者 Robert Love rml@tech9.net 介绍 可抢占内核会引发新的锁定问题。这些问题与SMP下的问 阅读全文
posted @ 2023-12-10 11:58 dolinux 阅读(62) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/ww-mutex-design.html Wound/Wait死锁安全的互斥锁设计 请先阅读通用互斥锁子系统,因为它也适用于等待/伤害互斥锁。 WW-互斥锁的动机 GPU执行的操作通常涉及许多缓冲区。这些缓冲区 阅读全文
posted @ 2023-12-10 11:54 dolinux 阅读(279) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/spinlocks.html 锁定课程 课程1:自旋锁 用于锁定的最基本原语是自旋锁: static DEFINE_SPINLOCK(xxx_lock); unsigned long flags; spin_l 阅读全文
posted @ 2023-12-10 11:43 dolinux 阅读(41) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/seqlock.html# 序列计数器和顺序锁 介绍 序列计数器是一种具有无锁读取器(只读重试循环)和无写入者饥饿的读者-写者一致性机制。它们用于很少写入数据的情况(例如系统时间),其中读者希望获得一致的信息集 阅读全文
posted @ 2023-12-10 11:41 dolinux 阅读(125) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/rt-mutex.html RT-mutex子系统支持PI RT-mutexes与优先级继承一起使用,以支持PI-futexes,从而使pthread_mutex_t支持优先级继承属性(PTHREAD_PRIO 阅读全文
posted @ 2023-12-10 11:35 dolinux 阅读(205) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/rt-mutex-design.html RT-mutex 实现设计 版权所有 (c) 2006 Steven Rostedt 根据 GNU 自由文档许可证第 1.2 版许可 本文档试图描述 rtmutex.c 阅读全文
posted @ 2023-12-10 10:33 dolinux 阅读(159) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/mutex-design.html 通用互斥子系统 由Ingo Molnar mingo@redhat.com发起 由Davidlohr Bueso davidlohr@hp.com更新 互斥锁是什么? 在Li 阅读全文
posted @ 2023-12-10 10:24 dolinux 阅读(115) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/lockstat.html 锁统计 什么 顾名思义,它提供了有关锁的统计信息。 为什么 因为诸如锁争用之类的问题会严重影响性能。 如何 Lockdep已经在锁函数中设置了钩子,并将锁实例映射到锁类上。我们在此基 阅读全文
posted @ 2023-12-10 10:10 dolinux 阅读(129) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/locking/lockdep-design.html 锁类 该验证器操作的基本对象是“锁”的“类”。 “锁”的“类”是一组逻辑上相同的锁,即使这些锁可能有多个(可能有成千上万个)实例化。例如,inode结构中的锁是一个类,而 阅读全文
posted @ 2023-12-10 10:02 dolinux 阅读(167) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/latest/locking/locktypes.html 锁类型及其规则 介绍 内核提供了各种锁原语,可以分为三类: 睡眠锁 CPU 本地锁 自旋锁 本文概念上描述了这些锁类型,并提供了它们的嵌套规则,包括在 PREEMPT_RT 下 阅读全文
posted @ 2023-12-10 09:05 dolinux 阅读(230) 评论(0) 推荐(0)
摘要: 原文: https://www.kernel.org/doc/html/latest/locking/index.html 锁定 锁类型及其规则 运行时锁正确性验证器 锁统计信息 内核锁折磨测试操作 通用互斥子系统 实时互斥锁实现设计 带有PI支持的实时互斥锁子系统 序列计数器和顺序锁 锁定教训 无 阅读全文
posted @ 2023-12-10 08:50 dolinux 阅读(27) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/rdma.html RDMA 控制器 1. 概述 1-1. 什么是 RDMA 控制器? RDMA 控制器允许用户限制给定一组进程可以使用的 RDMA/IB 特定资源。这些进程是使用 阅读全文
posted @ 2023-12-09 22:21 dolinux 阅读(108) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/pids.html 进程数量控制器 摘要 进程数量控制器用于允许 cgroup 层次结构在达到一定限制后阻止任何新任务进行 fork() 或 clone()。 由于很容易达到任务限制 阅读全文
posted @ 2023-12-09 22:20 dolinux 阅读(58) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/net_prio.html 网络优先级cgroup 网络优先级cgroup提供了一个接口,允许管理员动态设置由各种应用程序生成的网络流量的优先级。 通常情况下,应用程序会通过SO_P 阅读全文
posted @ 2023-12-09 22:19 dolinux 阅读(90) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/net_cls.html 网络分类器 cgroup 网络分类器 cgroup 提供了一个接口,用于给网络数据包打上一个类别标识符(classid)。 流量控制器(tc)可以用来为来自 阅读全文
posted @ 2023-12-09 22:17 dolinux 阅读(131) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/memcg_test.html Memory Resource Controller(Memcg) Implementation Memo 最后更新时间:2010/2 基础内核版本: 阅读全文
posted @ 2023-12-09 22:14 dolinux 阅读(105) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/hugetlb.html HugeTLB 控制器 HugeTLB 控制器可以通过首先挂载 cgroup 文件系统来创建。 # mount -t cgroup -o hugetlb n 阅读全文
posted @ 2023-12-09 21:55 dolinux 阅读(132) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/freezer-subsystem.html Cgroup Freezer cgroup冷冻器对于批处理作业管理系统非常有用,该系统可以启动和停止一组任务,以便根据系统管理员的需求安 阅读全文
posted @ 2023-12-09 21:53 dolinux 阅读(164) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/devices.html 设备白名单控制器 1. 描述 实现一个 cgroup 来跟踪和强制设备文件的打开和 mknod 限制。设备 cgroup 将设备访问白名单与每个 cgrou 阅读全文
posted @ 2023-12-09 21:52 dolinux 阅读(96) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/cpusets.html CPUSETS 1. Cpusets 1.1 什么是 cpusets? Cpusets 提供了一种机制,用于将一组 CPU 和内存节点分配给一组任务。在本文 阅读全文
posted @ 2023-12-09 21:49 dolinux 阅读(337) 评论(0) 推荐(0)
摘要: 原文:https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/cpuacct.html CPU核算控制器 CPU核算控制器用于使用cgroups对任务进行分组,并核算这些任务组的CPU使用情况。 CPU核算控制器支持多层级分组。一个核算组 阅读全文
posted @ 2023-12-09 21:38 dolinux 阅读(40) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/blkio-controller.html Block IO 控制器 概述 cgroup 子系统 "blkio" 实现了块 IO 控制器。在存储层次结构中,似乎需要各种类型的 IO 阅读全文
posted @ 2023-12-09 21:36 dolinux 阅读(392) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/cgroups.html 控制组 由Paul Menage menage@google.com编写,基于CPUSETS 来自CPUSETS的原始版权声明: 部分版权所有(C)2004 阅读全文
posted @ 2023-12-09 21:32 dolinux 阅读(118) 评论(0) 推荐(0)
摘要: https://www.kernel.org/doc/html/v6.6/RCU/checklist.html RCU补丁审查清单 本文档包含了一个用于生成和审查使用RCU的补丁的清单。违反以下列出的任何规则都会导致与省略锁原语相同类型的问题。这份清单基于审查这类补丁的经验,经历了相当长的一段时间, 阅读全文
posted @ 2023-12-09 21:00 dolinux 阅读(113) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 41 下一页