[Tekkaman2440@SBC2440V4]#cd/lib/modules/[Tekkaman2440@SBC2440V4]#insmod IO_port.ko[Tekkaman2440@SBC2440V4]#insmod IO_mem.ko[Tekkaman2440@SBC2440V4]#cat/proc/devicesCharacter devices:1 mem2 pty3 ttyp4/dev/vc/04 tty4 ttyS5/dev/tty5/dev/console5/dev/ptmx7 vcs10 misc13 input14 sound81 video4linux89 i2c90 mtd116 alsa128 ptm136
pts153 spi180 usb189 usb_device204 s3c2410_serial251 IO_mem252 IO_port253 usb_endpoint254 rtcBlock devices:1 ramdisk256 rfd7 loop31 mtdblock93 nftl96 inftl179 mmc[Tekkaman2440@SBC2440V4]#mknod-m 666/dev/IO_port c 252 0[Tekkaman2440@SBC2440V4]#mknod-m 666/dev/IO_mem c 251 0[Tekkaman2440@SBC2440V4]#cd/tmp/[Tekkaman2440@SBC2440V4]#./IO_mem_testio_addr:c485e0d0IO_mem:the module cannotlseek!please input the command:1IO_mem:ioctl 1 ok!please input the command:8IO_mem:ioctl STATUS ok!current_status=0X1please input the command:3IO_mem:ioctl 3 ok!please input the command:q[Tekkaman2440@SBC2440V4]#./IO_porttest_sleep&[Tekkaman2440@SBC2440V4]#./IO_porttest_sleep&[Tekkaman2440@SBC2440V4]#./IO_porttest_sleep&[Tekkaman2440@SBC2440V4]#./IO_port_testIO_port:the module cannotlseek!please input the command:1IO_port:ioctl 1 ok!please input the command:8IO_port:ioctl STATUS ok!current_status=0X1please input the command:3IO_port:ioctl 3 ok!please input the command:8IO_port:ioctl STATUS ok!current_status=0X3please input the command:q[1]Done./IO_porttest_sleep[Tekkaman2440@SBC2440V4]#psPID Uid VSZ Stat Command1 root 1744 S init2 root SW