Basic Framework of Linux Kernel Modules

The writing of Linux kernel modules intimidates many people, but it is actually not that difficult or complicated. Here’s a basic framework to help those with a little knowledge get started quickly. 1. Basic Framework (Before Kernel 2.3.13) #include<linux/kernel.h> #include<linux/module.h> int init_module(void){ pr_info("hello module.\n"); return 0; } void cleanup_module(void){ pr_info("hello end.\n"); } MODULE_LICENSE("GPL"); #include<linux/module.h> int … Read more

Raspberry Pi VoIP SMS Server Setup

Raspberry Pi VoIP SMS Server Setup

Raspberry Pi: GOIP Previously used a USB SIM800-like communication module, operated the serial port with Python after connecting to the computer. Subsequently used Raspberry Pi/ESP32 as the main controller. The open-source asterisk can not only serve as a VoIP server but also bridge PSTN for making and receiving calls and SMS messages. The customized system … Read more