# Linux_module **Repository Path**: supansun/Linux_module ## Basic Information - **Project Name**: Linux_module - **Description**: S5PV210 - **Primary Language**: C - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-07-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #Linux_module sudo dmesg -c : 清除已经存在的内核打印信息 dmesg : 打印内核信息 sudo insmod xxx.ko : 插入某模块到内核中 sudo rmmod xxx : 先用lsmod查看已经加载到内核的模块, 再用此命令移除, 注意, 这里只是模块名字, 而不带.ko sudo mknod /dev/device_name c 主设备号 次设备号 module_init(char_dev_init); 模块加载函数,insmod或者modprobe时调用 module_exit(char_dev_exit); 模块卸载函数, rmmod时调用