How to Check the Number of Users in Linux

How to Check the Number of Users in Linux

Hello, dear readers. I believe you are not unfamiliar with the Linux operating system. As an open-source operating system, Linux is widely used in various scenarios, whether on servers, desktops, or embedded systems. Today, I want to share a little story about Linux, focusing on the experience of checking the number of users in a … Read more

An Overview of TC Traffic Control in Linux Kernel Networking

An Overview of TC Traffic Control in Linux Kernel Networking

“Last night, I dreamt of falling flowers by a quiet pond, how pitiful that spring is halfway gone and I haven’t returned home“ Linux kernel Traffic Control (TC) refers to the queuing and scheduling mechanism for receiving and sending data packets by network devices. It can implement basic functions such as Shaping, Scheduling, Policing ingress, … Read more

Exploring the Wonderful World of Linux: Fun Terminal Easter Eggs

Exploring the Wonderful World of Linux: Fun Terminal Easter Eggs

The world of Linux is full of fun and surprises! Today, let’s explore three amazing “Easter eggs” hidden in the Linux terminal: the Tropical Fish Tank, the Shell Train, and the Talking Cow. These seemingly nonsensical little gadgets not only make your terminal lively and interesting but also allow you to show off your “geeky” … Read more

Commonly Used Linux Commands for Developers (1)

Commonly Used Linux Commands for Developers (1)

Introduction As a developer, using the Linux system is a common practice and a skill that every developer must learn. Being proficient in Linux commands can help you complete tasks more efficiently while using the Linux system. vim Command Today, we will introduce the vim command, which is the pro version of the vi command, … Read more

Performance Comparison: Windows WSL vs. Native Linux

Performance Comparison: Windows WSL vs. Native Linux

On Windows, you can call the Linux subsystem, known as WSL. I tested its performance a few years ago and remember it being quite poor, but the data is no longer available. Recently, due to a client’s need to remotely rent my machine, they mentioned that using a Windows virtual machine would be more convenient. … Read more

Analysis of Bus Device Driver Model

Analysis of Bus Device Driver Model

Reviewing the bus device driver model, I’ve made a few notes for reference, experts can skip this. 1. A significant part of the driver framework in the Linux system revolves around the bus device driver model. 2. Involves three important structures: struct bus_type: Bus struct device: Device struct device_driver: Driver 3. Core code analysis of … Read more

Using I2C to Drive PCA9555 Expansion Chip

Using I2C to Drive PCA9555 Expansion Chip

To further study Linux I2C, after the previous I2C driver for BL24C04, I have prepared the PCA9555/TCA9555 expansion GPIO chip. Its specific function is to extend 16 GPIOs via the I2C bus and it has input interrupt capabilities. 1. Add PCA9555 Device Tree Node According to the PCA9555 circuit diagram above, the 7-bit I2C address … Read more

Effective Prevention of Memory Leaks in Embedded C Programming

Effective Prevention of Memory Leaks in Embedded C Programming

Click the blue “One Bite Linux” in the upper left corner and select “Set as Favorite“ Get the latest articles immediately ☞【Resource】Learning Path for Embedded Driver Engineers ☞【Resource】Linux Embedded Knowledge Points – Mind Map – Free Access ☞【Employment】A Comprehensive IoT Project Based on Linux for Your Resume ☞【Employment】Resume Template for Job Hunting 1. Introduction Recently, … Read more

Essential Embedded Development: RK3562 Linux Commands (Part 1)

Essential Embedded Development: RK3562 Linux Commands (Part 1)

This article introduces commands for checking the hardware configuration and common debugging commands in the Linux system, helping developers quickly understand the hardware information of the development board and perform related debugging.Touch Intelligence RK3562 Development Board demonstration, equipped with a quad-core A53 processor, with a main frequency of up to 2.0GHz; built-in independent 1TOPS computing … Read more

Embedded Linux: Thread Creation, Termination, Reclamation, Cancellation, and Detachment

Embedded Linux: Thread Creation, Termination, Reclamation, Cancellation, and Detachment

Click the blue text above to follow us The operations of thread creation, termination, cancellation, reclamation, and detachment are core to multithreaded programming. In multithreaded programming, it is essential to manage the lifecycle of threads properly to avoid issues such as resource leaks, race conditions, or zombie threads. 1 Creating Threads In Linux, by default, … Read more