static int file_open(struct inode *inode, struct file *filp) { int minor = iminor(inode); int err; lock_kernel(); err = rtlx_open(minor, (filp->f_flags & O_NONBLOCK) ? 0 : 1); unlock_kernel(); return err; }
static int file_open(struct inode *inode, struct file *filp) { return rtlx_open(iminor(inode), (filp->f_flags & O_NONBLOCK) ? 0 : 1); }