unsigned int read(struct file *filp, void *buf, size_t count, loff_t *f_pos)
{
int loop = 0;
unsigned int * temp=0;
FUNC_IN
dbg("inode num[%08x]", filp->f_path.dentry->d_inode->i_ino);
dbg("iminor num[%08x]", iminor(filp->f_path.dentry->d_inode));
switch ( iminor(filp->f_path.dentry->d_inode) ) {
case 0:
interruptible_sleep_on(&read_wait);
break;
case 1:
interruptible_sleep_on(&read_wait_gps);
break;
case 2:
interruptible_sleep_on(&read_wait_ppp);
break;
}
( ... )
댓글 없음:
댓글 쓰기