Linux hot-plug UDEV mechanism

Table of Contents 1 daemon process 1.1 Basic characteristics of guardianship 1.2 How to distinguish between daemon process and kernel process 2. Daemon development method (daemon) 2.1 daemon function prototype: 2.2 Daemon process – obtain the system time every 10 seconds and write it to the file 3. The difference between daemon process and background […]

ASM+udev+oracle11gR2+rhel7–1.rhel7 server environment construction

(1) Introduction to building The purpose of this article is to build a single instance database oracle11gR2 + ASM + udev for subsequent testing. There are 4 articles in the column, each introducing the following steps: rhel7 server environment setup udev configure disk and disk planning Visual installation grid + asm configuration Visual installation database […]

Driver development–implementation process of udev mechanism for automatically creating device nodes

1. Understanding udev udev: A mechanism for automatically creating device nodes. The logic of creating device nodes is in user space. 2. Analysis of the process of creating device nodes by udev mechanism 3. Directory information creation and deletion functions #include<linux/device.h> 1. Submit directory information upwards struct class * class_create(struct module *owner,const char *name); Function: […]

Linux uses libudev to obtain the mounting path, monitor U disk hot plug events, and U disk file system type

Article directory Get mount path Monitor U disk hot plug events libusb File system type Get the mount path through the mount point Tim libudev plus library Get the mount path #include <stdio.h> #include <libudev.h> #include <string.h> int main() {<!– –> struct udev *udev; struct udev_enumerate *enumerate; struct udev_list_entry *devices, *entry; //Create udev context and […]

Daemons and UDEV Mechanisms

Mobile phone access to Linux hot-swapping related: To communicate with Android, command interaction, and data interaction, you need to install adb (Android Debug Bridge)ADB (Android Debug Bridge) is a command-line tool for communicating with Android devices. sudo apt-get install adb//apt-get automatically searches, installs, upgrades, and uninstalls software or operating systems from Internet software warehouses. Use […]

Orange Pi Zero2–Linux hot-swappable Udev mechanism

Directory Introduction daemon process Daemon development mode daemon application douyinUtils.c Identify whether the douyin program exits shouhu.c Do not execute the program in the daemon process until the program exits, that is, restart the douyin program Set boot Udev configuration file ?udev rule’s match key Automatically mount U disk ntfs format usb mount Udev Introduction […]

udev distinguishes devices with the same USB pid vid

Problem phenomenon module lsusb results dev IMU USB Serial Port Module 10c4:ea60 Silicon Labs CP210x UART Bridge /dev/ttyUSB0 Chassis USB Serial Port Module 10c4:ea60 Silicon Labs CP210x UART Bridge /dev/ttyUSB1 1. When the device is restarted, there is a low probability that the ttyUSB{0,1} serial numbers of the two modules are exchanged, causing the program […]

imx6ull development board environment configuration – libusb, libudev, eudev cross compilation

Directory Zero. Foreword 1. libusb cross compilation 1.0 Preface 1.1 Cross Compilation Two, usbutils cross compilation 2.0 Preface 2.1 Cross Compilation 3. libudev cross compilation 3.0 Preface 3.1 Cross Compilation 3.2 Error handling – usbutils not found 3.3 Error handling – pci.ids not found (pci.ids not found) 3.3.0 Preface 3.3.1 Find pci.ids 3.3.2 Continue to […]

Linux hot-plug UDEV mechanism and daemon process

Linux hot plug UDEV mechanism 1. udev is a device management tool, and udev runs as a daemon process. 2. Manage the device files under dev by listening to the uevent sent by the kernel. 3.udev runs in user space, not in kernel space. 4. Able to dynamically update device files, create, delete, etc. System […]