Deep Understanding of Linux Bus Device Driver Framework

Deep Understanding of Linux Bus Device Driver Framework

Developing Linux drivers is significantly different from developing application programs. These differences lead to the essential distinction between writing Linux device drivers and writing application programs. 1. User Mode and Kernel Mode The Linux operating system is divided into user mode and kernel mode. The kernel mode handles interactions with hardware, such as reading and … Read more

Comparison of Device Driver Models in Linux and Windows

Comparison of Device Driver Models in Linux and Windows

This article navigation –1. Device Driver Architecture08% –1.1. Windows Driver Architecture09% –1.2. Linux Driver Architecture16% –2. Device Driver API22% –Driver I/O Models on Windows46% –Driver I/O Models on Linux51% –Registering Devices on Windows27% –Registering Devices on Linux33% –2.1. Initialization23% –2.2. Naming and Declaring Devices27% –2.3. Data Exchange42% –3. Device Driver Development Environment56% –Windows Driver Kit56% … Read more

How to Write a Block Device Driver

How to Write a Block Device Driver

First, refer to the kernel code in z2ram.c Simulate a block device driver using memory The specific process of a block device driver: 1. Register the block device with the kernel int register_blkdev(unsigned int major, const char *name) Parameter 1: major write 0 to automatically get the major device number Parameter 2: The registered name … Read more

Introduction to Linux Device Drivers

Introduction to Linux Device Drivers

01 — Linux Architecture The Linux architecture can be divided into user space and kernel space, which interact with each other through the system call interface. The so-called System Call Interface is a mature interface predefined by the Linux kernel for user space applications. User applications can call the services provided by the operating system … Read more

Mastering Linux Device Driver Development – Bilingual Edition

Mastering Linux Device Driver Development - Bilingual Edition

Mastering Linux Device Driver Development, published by People’s Posts and Telecommunications Press, English original title: Essential Linux Device Drivers. Author: Sreekrishnan Venkateswaran, translated by Song Baohua and others. “Mastering Linux Device Driver Development” is a work in the field of Linux device driver development. The book is based on the 2.6 kernel and not only … Read more

Understanding Linux Device Driver Model

Understanding Linux Device Driver Model

Originally from Yuedu Code Field Let heaven return to heaven, let dust return to dust —— Discussing Linux’s bus, device, and driver model Author:Song Baohua On May 15, 1951, during a congressional hearing, U.S. Army five-star General MacArthur suggested expanding the Korean War into China. Bradley then remarked, “If we expand the war into Communist … Read more

Rust Rewrites Everything?

Rust Rewrites Everything?

Produced by | OSC Open Source Community (ID: oschina2013) The Internet Security Research Group (ISRG) is working on the Prossimo project, which is rewriting sudo and su in Rust to enhance their memory safety, ensuring they no longer suffer from memory safety vulnerabilities, and further strengthening the security of the Linux and open source ecosystem. … Read more

How to Run RISC-V Linux on QEMU

How to Run RISC-V Linux on QEMU

Today, I will teach you how to run a RISC-V Linux on the QEMU emulator. A RISC-V Linux includes: opensbi linux root filesystem 1. Download RISC-V Toolchain Downloading the toolchain source code and compiling it can lead to incorrect options, so we will use the precompiled toolchain instead. Website: https://toolchains.bootlin.com This site provides some precompiled … Read more

Building Cross-Compiler with Buildroot for i.MX6ULL

Building Cross-Compiler with Buildroot for i.MX6ULL

Click the above “Yikou Linux“, select “Star Public Account“ Practical benefits delivered to you first! Introduction This article is based on testing and verification of the HD-IMX6ULL-MB series development board, which is co-developed by Wuhan Xinluyao Technology Co., Ltd. and Wuhan Wanxiang Aoke Electronics Co., Ltd. This development board is designed based on the NXP … Read more

Building OpenCV File System Using Buildroot for iTop Board

Building OpenCV File System Using Buildroot for iTop Board

After watching Xunwei’s 2020, what are everyone’s thoughts? The magician was shocked by everyone’s enthusiasm. Those coming for interviews should contact the magician for contact details; those urging the magician to share photos are making it tough for him~ Haha, but back to the point, technical blog posts need to be updated, and the driver … Read more