Overview and Core Concepts of Linux Workqueue

Overview and Core Concepts of Linux Workqueue

Overview and Core Concepts of Linux Workqueue Part 1: Overview and Core Concepts of Workqueue 1.1 What is Workqueue? Imagine you are a busy restaurant manager. When customers place their orders, some tasks need to be completed immediately (like pouring water for the guests), similar to the interrupt handling in the Linux kernel, which requires … Read more

Linux Embedded Driver Development

Module_Driver_printk – Basic Structure and Log Printing of Modules 1. Creating C and Makefile Files Command to create a folder mkdir <folder_name> Creating a file touch <file_name> Deleting a folder (non-empty) rm -r <folder_name> -r option: Recursively delete, which means deleting all files and subdirectories under the directory. Force delete (avoid confirmation prompt) rm -rf … Read more

Writing the Simplest Linux Kernel Driver (Hello World)

Writing the Simplest Linux Kernel Driver (Hello World)

Table of Contents 1. Introduction 2. Overall Process 3. Position in the System 4. Writing C Source Code 5. Writing Makefile 6. Compile, Load, View, Unload 6.1 Compile Module 6.2 Load Module 6.3 View Module and Logs 6.4 Unload Module 6.5 View Logs Again 7. Common Errors and Troubleshooting 7.1 insmod Error: invalid module format … Read more

Understanding Linux Kernel: ‘M’ vs ‘Y’ – What Lands on Disk?

Understanding Linux Kernel: 'M' vs 'Y' – What Lands on Disk?

When configuring the Linux kernel, choosing between M (module) and Y (built-in) has a big impact on what ends up on disk and how your system behaves. Here’s a quick breakdown to help you make informed decisions for your next kernel build! 🚀🛠️ Compilation ViewY (Built-in):Each .c file compiles to an object file (.o).All .o … Read more

VxWorks 7 SDK Application Developer Guide

VxWorks 7 SDK Application Developer Guide

About The role of the Application Developer is to create Downloadable Kernel Modules (DKMs), Real-Time Processes (RTPs), and libraries for specific VxWorks Source Code Builds (VSB) and VxWorks Image Projects (VIP). The Software Development Kit (SDK) provides developers with the tools necessary to compile, debug, and test applications and libraries. • RTP (Real-Time Process) – … Read more