5 c语言调用Linux的sleepy函数,Linux设备驱动程序学习( 六 )


[@]#ps
PID Uid VSZ Stat
1 root 1744 S init
2 root SW< []
3 root SWN [/0]
4 root SW< [/0]
5 root SW< [/0]
6 root SW< []
59 root SW< [/0]
60 root SW< []
63 root SW< [khubd]
65 root SW< []
77 root SW []
78 root SW []
79 root SW< []
80 root SW< [aio/0]
707 root SW< []
708 root SW< [nftld]
709 root SW< []
710 root SW< [rfdd]
742 root SW< []
751 root SW< [kmmcd]
769 root SW< [/0]
778 root 1752 S -sh
779 root 1744 S init
781 root 1744 S init
783 root 1744 S init
785 root 1744 S init
796 root 1344 S ./
797 root 1744 R ps
[@]#./ &
[@]#echo 234 > /dev/
[@]#234
close!
exit !
[2] + Done ./
[@]#cat /proc/
is 21
0:
:
:to(21 bytes)
rpwp
10
1:
:
:to(21 bytes)
rpwp
10
2:
:
:to(0 bytes)
rpwp
00
3:
:
:to(0 bytes)
rpwp
00