static int ptmx_open(struct inode *inode, struct file *filp) { int ret; lock_kernel(); ret = __ptmx_open(inode, filp); unlock_kernel(); return ret; }
static int ptmx_open(struct inode *inode, struct file *filp) { int ret; tty_unlock(); ret = __ptmx_open(inode, filp); tty_unlock(); return ret; }