-字元装驱动程式5.ppt

-字元装驱动程式5

Chap 3-字元裝置驅動程式;Outline;3--Introduction;3.1--scull的設計藍圖;3.2--主編號與次編號;3.2--主編號與次編號;3.2--主編號與次編號;3.2.1--隨機取得主編號;3.2.1--隨機取得主編號;3.2.1--隨機取得主編號;3.2.1--隨機取得主編號;#!/bin/sh module=scull“ scull_load device=scull mode=664 # Group: since distributions do it differently, look for wheel or use staff if grep ^staff: /etc/group /dev/null; then group=staff else group=wheel fi # invoke insmod with all arguments we got # and use a pathname, as newer modutils dont look in . by default /sbin/insmod -f ./$module.o $* || exit 1 major=`cat /proc/devices | awk \\$2==\$module\ {print \\$1}` # Remove stale

文档评论(0)

1亿VIP精品文档

相关文档