ローダブル・モジュールのキャラクタ・デバイス static int h_open(struct inode * inode, struct file * file) { unsigned int minor = MINOR(file->f_dentry->d_inode->i_rdev); printk("LKM-hello:open minor=%d¥n", minor); return 0; } static int h_release(struct inode * inode, struct file * file) { unsigned int minor = MINOR(file->f_dentry->d_inode->i_rdev); printk("LKM-hello:release minor=%d¥n", minor); return 0; }