Linux内核架构分析精品培训讲义

上传人:e****s 文档编号:243688556 上传时间:2024-09-28 格式:PPT 页数:16 大小:400KB
返回 下载 相关 举报
Linux内核架构分析精品培训讲义_第1页
第1页 / 共16页
Linux内核架构分析精品培训讲义_第2页
第2页 / 共16页
Linux内核架构分析精品培训讲义_第3页
第3页 / 共16页
点击查看更多>>
资源描述
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,*,Architecture of the Linux Kernel,by Dominique Gerald M Cimafranca,This work is licensed under the Creative Commons Attribution-Share Alike 3.0 Philippines License. To view a copy of this,license, visit :/creativecommons.org/licenses/by-sa/3.0/ph/ or send a letter to Creative Commons, 171 Second Street,Suite 300, San Francisco, California, 94105, USA.,Fundamental Architecture,User Applications,User Space,GNU C Library (glibc),System Call Interface,Kernel,Kernel Space,Architecture Dependent Kernel Code,Hardware Platform,User Space Components,User applications,glibc,Provides the system call interface that connects to,the kernel,Provides the mechanism to transition between user-,space application and kernel,Each user space process occupies its own,virtual address space (vs the kernel which runs,on the single address space),Kernel Space Components,System Call Interface,Provides the basic functions such as,read(),and,write(),Kernel,Architecture-independent kernel code,Common to all processor architectures supported by,Linux,Architecture-Dependent Code,Processor- and platform-specific code,Also known as,Board Support Package,Kernel Subsystems,System Call Interface,Process Management,Memory Management,Arch,Virtual File System,Network Stack,Device Drivers,System Call Interface,Provides the means to perform function calls,from user space into the kernel.,This interface can be architecture dependent,even within the same processor family.,Can be found in,./linux/kernel,./linux/arch,Process Management,Focused on the execution of processes,Each has an individual virtualization of the,processor (thread code, data, stack, and,registers),Kernel provides API through SCI to start, stop,and communicate with processes,Processes are managed by a scheduler,Scheduler,Kernel implements a scheduling algorithm,Operates in constant time, regardless of threads,O(1), meaning, same time to schedule one thread,or many threads,Can be found in,./linux/kernel,./linux/arch,Memory Management,Memory is managed in,pages,Typically 4KB per page for most architectures,Can be adjusted,Support for hardware mechanisms for physical,and virtual mappings, e.g. MMU on Pentium,Keeps tracks of which pages are full, partially,used, or empty,Or if physical memory runs out,swap,to disk,Can be found in ./linux/mm,Virtual File System,Virtual File System,ext3,.,FAT32,/proc,Buffer Cache,Device Drivers,Physical Devices,Virtual File System,Presents a common API abstraction of,functions such as open, close, read, and write,Translates to abstractions specific to a file,system,Support for over 50 different file systems,Can be found in ./linux/fs,Buffer Cache,Caching layer that optimizes access to the,physical devices by keeping data around for a,short time,Provides a common set of functions to the file,system layer (independent of any particular file,system),Network Stack,Follows a layered architecture modeled after,the TCP/IP protocols,TCP layer communicates with SCI via sockets,Sockets provide a standard API to the,networking subsystem,Manage connections,Move data between endpoints,Can be found in ./linux/net,Device Drivers and Architecture-,Dependent Code,Most of the Linux kernel source code consists,of device drivers,Can be found in ./linux/drivers,While Linux kernel is mostly architecture,Can be found in ./linux/arch,Questions?,References,Anatomy of the Linux Kernel, M. Tim Jones, IBM Developerworks,( :/ ibm /developerworks/linux/library/l-linux-kernel/),
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 管理文书 > 各类标准


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!