随笔分类 - Linux
摘要:#!/bin/shmodule="scull"device="scull"mode="664"# invoke insmod with all arguments we got# and use a pathname, as newer modutils don't look in . by def
阅读全文
摘要:通过文本文件/proc/sys/kernel/printk读写控制台记录级别 可以使所有内核消息出现在控制台,通过简单地输入 #echo 8 > /proc/sys/kernel/printk
阅读全文
摘要:read方法是从设备拷贝数据到用户空间:使用copy_to_user write方法是从用户空间拷贝数据到设备:使用copy_from_user。
阅读全文
摘要:du -h --max-depth=1
阅读全文
浙公网安备 33010602011771号