キャラクタ・デバイスの実行 [root@gabin 10]# insmod hello.o Warning: loading hello.o will taint the kernel: no license See http://www.tux.org/lkml/#export-tainted for information about tainted modules Module hello loaded, with warnings [root@gabin 10]# tail -3 /var/log/messages Oct 9 04:48:11 gabin sshd(pam_unix)[3717]: session closed for user take Oct 9 04:52:53 gabin kernel: LKM-hello: Hello Oct 9 04:52:53 gabin kernel: LKM-hello: major=121 [root@gabin 10]# cat > /dev/hello 1 2 1 [root@gabin 10]# tail -6 /var/log/messages Oct 9 04:53:25 gabin kernel: LKM-hello:open minor=0 Oct 9 04:53:25 gabin kernel: LKM-hello0 ioctl, cmd: 0x5401, arg: 0xbfff2890 Oct 9 04:53:25 gabin kernel: LKM-hello0 ioctl, cmd: 0x5401, arg: 0xbfff3890 Oct 9 04:53:28 gabin kernel: LKM-hello:write minor=0 Oct 9 04:53:31 gabin last message repeated 2 times Oct 9 04:53:33 gabin kernel: LKM-hello:release minor=0 [root@gabin 10]#