Operation of linked list in Linux system

Operation of Linux kernel queue This system imitates the queue implementation in Linux. It is a two-way linked list. Personally, I think the implementation of two-way linked list in Linux is simply wonderful. 1, Implementation of conventional linked list When learning the data structure course, they all learned the data structure of two- ...

Posted by o2cathy on Sat, 29 Jan 2022 18:16:41 +0100

Notes on 30 days self made operating system - Day6

Segment properties: void set_segmdesc(struct SEGMENT_DESCRIPTOR *sd, unsigned int limit, int base, int ar) { if (limit > 0xfffff) { ar |= 0x8000; /* G_bit = 1 */ limit /= 0x1000; } sd->limit_low = limit & 0xffff; sd->base_low = base & 0xffff; sd->base_mid = (base >> 16) & 0xff; sd->access_righ ...

Posted by Griffin on Fri, 28 Jan 2022 13:51:02 +0100

rCore qemu risc-v experimental environment configuration

[reference] environment deployment - rcore tutorial deploy - gitbook: https://rcore-os.github.io/rCore-Tutorial-deploy/docs/pre-lab/env.html [reference] experimental environment configuration - rCore-Tutorial-Book-v3 0.1 document: https://rcore-os.github.io/rCore-Tutorial-Book-v3/chapter0/5setup-devel-env.html [reference] qemu/qemu: Official QE ...

Posted by Hodo on Fri, 28 Jan 2022 10:39:23 +0100

Operating system experiment 6 - producer consumer issues

Personal blog address 1, Experimental content Simulate process synchronization and mutual exclusion in the operating system. 2, Experimental purpose Familiar with the definition and physical meaning of critical resources, semaphores and PV operationUnderstand the method of process communicationMaster the knowledge of process mutual exclusio ...

Posted by freakyfreak on Thu, 27 Jan 2022 13:54:38 +0100

DIY operating system: screen printing implemented by kernel

VGA register The reason why register subclasses are divided into Address Register and Data Register: there will be multiple registers under a register group. To operate on one of them, use the content of Address Register to indicate the subscript of this register in the register array, and use Data Register as the substitute of this regis ...

Posted by amwd07 on Thu, 27 Jan 2022 04:54:59 +0100

ucore lab3 learning notes sorting

With the help of page table mechanism and interrupt exception handling mechanism, this experiment completes the implementation of page fault exception handling and fifo page replacement algorithm. ucore established mm_struct and vma_struct data structure, which describes the legal memory space required by ucore simulation application. vma_ The ...

Posted by robot_nader on Mon, 24 Jan 2022 21:25:48 +0100

[xv6 source code snooping] network card driver

prefaceThis article is about MIT 6 Implementation of s081-2020-lab11 (Networking);If you find any mistakes in the content, please don't save your keyboard.preparationHow to say, this last experiment... Is very... Interesting... (shame)The test of this experiment is divided into two parts: one is the APR communication between the host and xv6 ru ...

Posted by grglaz on Sun, 23 Jan 2022 22:59:28 +0100

Operating system experiment 2 - virtual memory / memory management

1, Experimental content Simulate the hardware address translation and page missing interrupt in paging storage management, and select the page scheduling algorithm to deal with page missing interrupt. 2, Experimental purpose In computer system, in order to improve the utilization of main memory, auxiliary memory (such as disk) is often u ...

Posted by phouchin on Sat, 22 Jan 2022 17:46:20 +0100

Operating system course design of Software School of Shandong University Nachos Experiment 7 virtual memory

Note: the experiments written in the blog are not comprehensive, and they are not the final version of the submitted experimental report (they are the notes simply recorded with typera during the experiment). The complete content (including code + experimental report) can be passed( Operating system course design of Software College of Shandong ...

Posted by abhi201090 on Fri, 21 Jan 2022 20:08:58 +0100

Jilin University operating system (Experiment 4: File System - Hash structure file)

Experiment 4: File System -- Hash structure file Experimental purpose 1. Understand the internal technology of Linux file system, master Linux system call commands related to files, and establish hash structure files for random retrieval on this basis. 2. Linux system maintains the style of UNIX file system and provides streaming file interf ...

Posted by amitsonikhandwa on Fri, 21 Jan 2022 11:57:17 +0100