Description: Linux下使用c语言实现的内存管理模拟器
假设有台计算机物理内存大小为4MB,每个内存页大小为4k。采用分页机制,使用二级页表,第一级为页目录,共有1024项,每个页目录项指向一个页表,每个页表项指向一个实际的物理页面,每个页表共有1024个页表项。假设页目录和页表不占用内存空间。 系统中还有一个交换设备,采用分块管理机制,每块大小为4K,共1024个。有一系列内存访问指令,系统根据内存访问指令的内存虚地址访问内存。如果页目录项为空,则分配一个页表,并将相关值存入页目录项,如果页表项为空,则请求分配一个内存页,如果没有空闲内存,则使用页面置换算法换出一个内存页到交换设备上。如果页表项表明内存页在交换设备上,则先请求一个物理内存页,然后从交换设备上读入内存内容,释放交换设备上的磁盘块。-use Linux c language memory management simulator assumptions computers to the physical memory size 4 MB, each memory page size to 4k. Pagination mechanism, the use of two-page questionnaire, the first level of Contents page, a total of 1,024. each page directory entry point to a page table, each page table at an actual item of the physical pages, each page table pages of a total of 1,024 items table. Assuming page catalog and page table off memory space. There is also a system to exchange equipment, a sub-block management mechanism, each 4K block size, a total of 1,024. A series of memory access instructions, the system memory access instructions under the virtual memory address access memory. If the page directory entry is empty, one-page questionnaire distribution, and related value depo Platform: |
Size: 4583 |
Author:罗鹏魁 |
Hits:
Description: Linux下使用c语言实现的内存管理模拟器
假设有台计算机物理内存大小为4MB,每个内存页大小为4k。采用分页机制,使用二级页表,第一级为页目录,共有1024项,每个页目录项指向一个页表,每个页表项指向一个实际的物理页面,每个页表共有1024个页表项。假设页目录和页表不占用内存空间。 系统中还有一个交换设备,采用分块管理机制,每块大小为4K,共1024个。有一系列内存访问指令,系统根据内存访问指令的内存虚地址访问内存。如果页目录项为空,则分配一个页表,并将相关值存入页目录项,如果页表项为空,则请求分配一个内存页,如果没有空闲内存,则使用页面置换算法换出一个内存页到交换设备上。如果页表项表明内存页在交换设备上,则先请求一个物理内存页,然后从交换设备上读入内存内容,释放交换设备上的磁盘块。-use Linux c language memory management simulator assumptions computers to the physical memory size 4 MB, each memory page size to 4k. Pagination mechanism, the use of two-page questionnaire, the first level of Contents page, a total of 1,024. each page directory entry point to a page table, each page table at an actual item of the physical pages, each page table pages of a total of 1,024 items table. Assuming page catalog and page table off memory space. There is also a system to exchange equipment, a sub-block management mechanism, each 4K block size, a total of 1,024. A series of memory access instructions, the system memory access instructions under the virtual memory address access memory. If the page directory entry is empty, one-page questionnaire distribution, and related value depo Platform: |
Size: 4096 |
Author:罗鹏魁 |
Hits:
Description: linux下获取一些环境信息的代码,比如cpu的使用率,内存的消耗-linux access to some of the environmental information under the code, such as the utilization rate of cpu, memory consumption Platform: |
Size: 390144 |
Author:lin |
Hits:
Description: 操作系统作业:由多进程实现生产者和消费者的同步。由于不是多线程,因此通过共享内存实现。互斥访问通过信号量实现。-Operating system operations: the process by a number of producers and consumers to achieve synchronization. Rather than as a result of multi-threaded, so to achieve through the shared memory. Exclusive access to achieve through the semaphore. Platform: |
Size: 6144 |
Author:liyali |
Hits:
Description: linux/unix共享内存访问包装例子,因考虑在标准C中使用,所以没有封装成类-linux/unix shared memory access packaging examples, due to consider the use of standard C, there is no package into a category Platform: |
Size: 2048 |
Author:qiugang |
Hits:
Description: Linux MTD介绍:
MTD(memory technology device内存技术设备)是用于访问memory设备(ROM、flash)的Linux的子系
统。MTD的主要目的是为了使新的memory设备的驱动更加简单,为此它在硬件和上层之间提供了一个
抽象的接口。MTD的所有源代码在/drivers/mtd子目录下。我将CFI接口的MTD设备分为四层(从设备节
点直到底层硬件驱动),这四层从上到下依次是:设备节点、MTD设备层、MTD原始设备层和硬件驱
动层。
根文件系统
文件系统
字符设备节点
MTD字符设备
MTD块设备
MTD原始设备
FLASH硬件驱动
块
重点是mtd的定义, 以及为什么要有mtd
mtd设备的分层-Linux MTD Introduction: MTD (memory technology device memory technology and equipment) is used to access memory devices (ROM, flash) subsystem of Linux. The main purpose of MTD in order to make the new memory device driver more simple, for it among the top in the hardware and provides an abstract interface. MTD All source code in/drivers/mtd subdirectory. I will CFI interface is divided into four MTD devices (from device node until the underlying hardware drivers), this four-story from top to bottom are: device node, MTD device layer, MTD layer original equipment and hardware driver layer. Root file system file system character device node MTD character device MTD block device MTD Original Equipment hardware drivers FLASH block focused on the definition of MTD, as well as equipment mtdmtd Why should there be a stratified Platform: |
Size: 79872 |
Author:hegaofen |
Hits:
Description: DMA,直接内存访问技术,提高访问速度,是硬盘流畅的保障,本书详细介绍了linux下是如何实现硬盘DMA驱动的-DMA, Direct Memory Access technology to improve access speed, is smooth to protect the hard disk, this book details how linux is DMA hard disk drive Platform: |
Size: 329728 |
Author:钱晓明 |
Hits:
Description: This module implements a Linux character-mode device-driver
for the processor s installed physical memory. It utilizes
the kernel s kmap() function, as a uniform way to provide
access to all the memory-zones (including the "high memory"
on systems with more than 896MB of installed physical ram).
The access here is read-only because we deem it too risky
to the stable functioning of our system to allow every user
the unrestricted ability to arbitrarily modify memory-areas
which might contain some "critical" kernel data-structures.
We implement an llseek() method so that users can readily
find out how much physical processor-memory is installed.
-This module implements a Linux character-mode device-driver
for the processor s installed physical memory. It utilizes
the kernel s kmap() function, as a uniform way to provide
access to all the memory-zones (including the "high memory"
on systems with more than 896MB of installed physical ram).
The access here is read-only because we deem it too risky
to the stable functioning of our system to allow every user
the unrestricted ability to arbitrarily modify memory-areas
which might contain some "critical" kernel data-structures.
We implement an llseek() method so that users can readily
find out how much physical processor-memory is installed.
Platform: |
Size: 8192 |
Author:jeevan |
Hits:
Description: The new edition of Understanding the Linux Kernel takes you on a guided tour through the most significant data structures, many algorithms, and programming tricks used in the kernel. The book has been updated to cover version 2.4 of the kernel, which is quite different from version 2.2: the virtual memory system is entirely new, support for multiprocessor systems is improved, and whole new classes of hardware devices have been added. You ll learn what conditions bring out Linux s best performance, and how it meets the challenge of providing good system response during process scheduling, file access, and memory management in a wide variety of environments.
Platform: |
Size: 2039808 |
Author:王大同 |
Hits:
Description: linux 多线程编程, 共享内存传递数据,为了实习多个线程同时访问数据,需要互斥,保证数据同步等-linux multithreaded programming, shared memory to transfer data, in order to practice multiple threads simultaneously access the data, need mutual exclusion, to ensure data synchronization Platform: |
Size: 16384 |
Author:郭东东 |
Hits:
Description: 通过1394接口获取Memory内容,在Linux下运行此程序(作为Host). 1394接口连接到一个Windows机器上(作为Target)。-Memory access to the content by 1394, to run this program in Linux (as Host). 1394 interface to connect to a Windows machine (as the Target). Platform: |
Size: 831488 |
Author:Tan Yu-An |
Hits:
Description: 这是驱动开发中的关键技术,如何访问内核中的内存。-This is the key technology-driven development, how to access the kernel memory. Platform: |
Size: 45056 |
Author:gaozhiliang |
Hits:
Description: 作者:华清远见嵌入式学院。《Linux设备驱动开发详解》(08&09年度畅销榜TOP50)第11章、内存与I/O访问。由于Linux系统中提供了复杂的内存管理功能,所以内存的概念在Linux系统中变得相对复杂,出现了常规内存、高端内存、虚拟地址、逻辑地址、总线地址、物理地址、I/O内存、设备内存、预留内存等概念。本章将系统地讲解内存和I/O的访问编程,带您走出内存和I/O的概念迷宫。11.1节讲解内存和I/O的硬件机制,主要涉及内存空间、I/O空间和MMU。11.2节讲解Linux的内存管理、内存区域的分布、常规内存与高端内存的区别。11.3节讲解Linux内存存取的方法,主要涉及内存动态申请以及通过虚拟地址存取物理地址的方法。11.4节讲解设备I/O内存和I/O端口的访问流程,这一节对于编写设备驱动意义非常重大,设备驱动使用此节的方法访问物理设备。11.5节讲解设备驱动中的DMA与CACHE一致性问题以及DMA编程方法。-Author: HuaQing vision embedded institute. The Linux device driver development "(08 and 09 sep TOP50) annual list of best-selling chapter 11, the memory and I/O visit. Because of the complex Linux system provide the memory management function, so the concept of memory in Linux systems become relatively complex, the emergence of a conventional memory, the high memory, virtual address, logical address, bus address, physical address, I/O memory, equipment memory, obligate concepts such as memory. This chapter will systematically explaining memory and I/O visit programming, take you out of memory and I/O concept maze. Section 11.1 explain memory and I/O hardware mechanism, mainly involves the memory space, I/O space and MMU. Section 11.2 explain the Linux memory management, memory area distribution, conventional memory and the high memory difference. Section 11.3 memory access method explained Linux, Lord ? Platform: |
Size: 658432 |
Author:华清远见 |
Hits:
Description: linux端获取系统CPU、硬盘。内存使用率,通过客户端socket传给windows服务端。-linux-side access to the system CPU, hard drive. Memory usage, the client socket to pass through the windows server. Platform: |
Size: 1024 |
Author:王健 |
Hits:
Description: 动态链接的共享库是 GNU/Linux® 的一个重要方面。该种库允许可执行文件在运行时动态访问外部函数,从而(通过在需要时才会引入函数的方式)减少它们对内存的总体占用。本文研究了创建和使用静态库的过程,详细描述了开发它们的各种工具,并揭秘了这些库的工作方式。-Dynamically linked shared library is an important aspect of GNU/Linux ® . Of the library allows an executable file at runtime to dynamically access external functions, and thus reduce their overall usage of the memory (through the introduction of the function when needed). This paper studies the process to create and use static libraries, and describes in detail the development of their various tools, and unveils the work of these libraries. Platform: |
Size: 31744 |
Author:刘健 |
Hits:
Description: linux多线程同步的方法
在线程对共享相同内存操作时,就会出现多个线程对同一资源的使用,为此,需要对这些线程进行同步,以确保它们在访问共享内存的时候不会访问到无效的数值。-linux multi-thread synchronization
Threads share the same memory operation, there will be multiple threads use the same resources to do this, you need to synchronize these threads to ensure that when they access the shared memory does not have access to an invalid value. Platform: |
Size: 7168 |
Author:长林 |
Hits:
Description: linux进程通信实际中的应用 ,使用共享内存来进行日志存取-The linux process communication actual application, use shared memory to log access Platform: |
Size: 4096 |
Author:zhang |
Hits:
Description: Handle mapping of the flash memory access routines on TQM8xxL based devices for linux.-Handle mapping of the flash memory access routines on TQM8xxL based devices for linux. Platform: |
Size: 2048 |
Author:dekuelu |
Hits: