上一页 1 2 3 4 5 6 7 8 9 ··· 40 下一页
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/driver.html 设备驱动程序 请参阅结构体device_driver的kerneldoc。 分配 设备驱动程序是静态分配的结构。尽管系统中可能有多个驱动程序支持的设备,但 阅读全文
posted @ 2023-12-10 13:17 摩斯电码 阅读(12) 评论(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 摩斯电码 阅读(20) 评论(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 摩斯电码 阅读(5) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/design-patterns.html 设备驱动设计模式 这份文档描述了设备驱动中常见的设计模式。子系统维护者可能会要求驱动开发者遵循这些设计模式。 状态容器 containe 阅读全文
posted @ 2023-12-10 12:56 摩斯电码 阅读(9) 评论(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 摩斯电码 阅读(20) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/driver-api/driver-model/binding.html 驱动绑定 驱动绑定是将设备与能够控制它的设备驱动程序关联起来的过程。通常由总线驱动程序处理这一过程,因为总线特定的结构用于表示设备和驱动程序。使用通用设 阅读全文
posted @ 2023-12-10 12:51 摩斯电码 阅读(7) 评论(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 摩斯电码 阅读(5) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/locking/hwspinlock.html 硬件自旋锁框架 简介 硬件自旋锁模块为异构处理器和不在单一共享操作系统下运行的处理器之间的同步和互斥提供硬件辅助。 例如,OMAP4具有双核Cortex-A9、双核Cortex- 阅读全文
posted @ 2023-12-10 12:44 摩斯电码 阅读(121) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/locking/percpu-rw-semaphore.html "Percpu rw semaphores" 是一种新的读写信号量设计,针对读取操作进行了优化。 传统的读写信号量存在一个问题,即当多个核心获取读取锁时,包含信 阅读全文
posted @ 2023-12-10 12:35 摩斯电码 阅读(58) 评论(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 摩斯电码 阅读(12) 评论(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 摩斯电码 阅读(90) 评论(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 摩斯电码 阅读(10) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/locking/seqlock.html# 序列计数器和顺序锁 介绍 序列计数器是一种具有无锁读取器(只读重试循环)和无写入者饥饿的读者-写者一致性机制。它们用于很少写入数据的情况(例如系统时间),其中读者希望获得一致的信息集 阅读全文
posted @ 2023-12-10 11:41 摩斯电码 阅读(22) 评论(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 摩斯电码 阅读(60) 评论(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 摩斯电码 阅读(33) 评论(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 摩斯电码 阅读(12) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/locking/lockstat.html 锁统计 什么 顾名思义,它提供了有关锁的统计信息。 为什么 因为诸如锁争用之类的问题会严重影响性能。 如何 Lockdep已经在锁函数中设置了钩子,并将锁实例映射到锁类上。我们在此基 阅读全文
posted @ 2023-12-10 10:10 摩斯电码 阅读(25) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/locking/lockdep-design.html 锁类 该验证器操作的基本对象是“锁”的“类”。 “锁”的“类”是一组逻辑上相同的锁,即使这些锁可能有多个(可能有成千上万个)实例化。例如,inode结构中的锁是一个类,而 阅读全文
posted @ 2023-12-10 10:02 摩斯电码 阅读(43) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/latest/locking/locktypes.html 锁类型及其规则 介绍 内核提供了各种锁原语,可以分为三类: 睡眠锁 CPU 本地锁 自旋锁 本文概念上描述了这些锁类型,并提供了它们的嵌套规则,包括在 PREEMPT_RT 下 阅读全文
posted @ 2023-12-10 09:05 摩斯电码 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 原文: https://www.kernel.org/doc/html/latest/locking/index.html 锁定 锁类型及其规则 运行时锁正确性验证器 锁统计信息 内核锁折磨测试操作 通用互斥子系统 实时互斥锁实现设计 带有PI支持的实时互斥锁子系统 序列计数器和顺序锁 锁定教训 无 阅读全文
posted @ 2023-12-10 08:50 摩斯电码 阅读(8) 评论(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 摩斯电码 阅读(32) 评论(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 摩斯电码 阅读(12) 评论(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 摩斯电码 阅读(18) 评论(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 摩斯电码 阅读(17) 评论(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 摩斯电码 阅读(13) 评论(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 摩斯电码 阅读(54) 评论(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 摩斯电码 阅读(46) 评论(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 摩斯电码 阅读(24) 评论(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 摩斯电码 阅读(75) 评论(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 摩斯电码 阅读(8) 评论(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 摩斯电码 阅读(101) 评论(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 摩斯电码 阅读(20) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/RCU/checklist.html RCU补丁审查清单 本文档包含了一个用于生成和审查使用RCU的补丁的清单。违反以下列出的任何规则都会导致与省略锁原语相同类型的问题。这份清单基于审查这类补丁的经验,经历了相当长的一段时间, 阅读全文
posted @ 2023-12-09 21:00 摩斯电码 阅读(18) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/core-api/genericirq.html Linux通用中断处理 版权 © 2005-2010:Thomas Gleixner © 2005-2006:Ingo Molnar 简介 通用中断处理层旨在为设备驱动程序提供 阅读全文
posted @ 2023-12-09 20:45 摩斯电码 阅读(14) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/RCU/index.html RCU概念 RCU补丁的审查清单 RCU和lockdep检查 Lockdep-RCU Splat RCU和可卸载模块 卸载使用call_rcu()的模块 rcu_barrier() 实现rcu_b 阅读全文
posted @ 2023-12-09 20:40 摩斯电码 阅读(29) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/core-api/packing.html 通用位字段打包和解包函数 问题陈述 在处理硬件时,人们必须在几种接口方式之间进行选择。可以将指针内存映射到硬件设备的内存区域上,并将其字段作为结构体成员(可能声明为位字段)进行访问。 阅读全文
posted @ 2023-12-09 20:31 摩斯电码 阅读(5) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/core-api/rbtree.html 红黑树(rbtree)在Linux中 日期 2007年1月18日 作者 Rob Landley rob@landley.net 红黑树是什么,它们有什么作用? 红黑树是一种自平衡的二叉 阅读全文
posted @ 2023-12-09 20:27 摩斯电码 阅读(82) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/core-api/circular-buffers.html 循环缓冲区 作者: David Howells dhowells@redhat.com Paul E. McKenney paulmck@linux.ibm.com 阅读全文
posted @ 2023-12-09 20:22 摩斯电码 阅读(37) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/core-api/this_cpu_ops.html 作者 Christoph Lameter,2014年8月4日 作者 Pranith Kumar,2014年8月2日 this_cpu操作是一种优化访问与当前执行处理器相关的 阅读全文
posted @ 2023-12-09 20:18 摩斯电码 阅读(70) 评论(0) 推荐(0) 编辑
摘要: https://www.kernel.org/doc/html/v6.6/core-api/kref.html 为内核对象添加引用计数器(krefs) 作者 Corey Minyard minyard@acm.org 作者 Thomas Hellstrom thellstrom@vmware.com 阅读全文
posted @ 2023-12-09 20:08 摩斯电码 阅读(37) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 40 下一页