if (tty_hung_up_p(filp)) filp->f_op = &tty_fops; goto retry_open; } clear_bit(TTY_HUPPED, &tty->flags); read_lock(&tasklist_lock); spin_lock_irq(¤t->sighand->siglock); if (!noctty && current->signal->leader && !current->signal->tty && tty->session == NULL) { /...
13 //只有条件得到了满足,我们才会继续,否则,直接返回! 14 if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { 15 retval = -EIO; 16 break; 17 } 18 if (O_OPOST(tty) && !(test_bit(TTY_HW_COOK_OUT, &tty->flags))) { 19 while (nr > 0) { 20 ssize_t num ...
//只有条件得到了满足,我们才会继续,否则,直接返回! if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { retval = -EIO; break; } if (O_OPOST(tty) && !(test_bit(TTY_HW_COOK_OUT, &tty->flags))) { while (nr > 0) { ssize_t num = process_output_block(tty, ...
*Needtoresetf_opincaseahanguphappened. */ if(tty_hung_up_p(filp)) filp->f_op=&tty_fops; gotoretry_open; } clear_bit(TTY_HUPPED,&tty->flags); read_lock(&tasklist_lock); spin_lock_irq(¤t->sighand->siglock); if(!noctty&& current->signal->leader&& !current->signal->tty&& tt...
if (tty_hung_up_p(file)) break; // 超时退出 if (!timeout) break; // 非阻塞退出 if (file->f_flags & O_NONBLOCK) { retval = -EAGAIN; break; } // 信号中断退出 if (signal_pending(current)) { retval = -ERESTARTSYS; break; ...
if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { retval = -EIO; break; } if (O_OPOST(tty) && !(test_bit(TTY_HW_COOK_OUT, &tty->flags))) { while (nr >0) { ssize_t num = process_output_block(tty, b, nr); ...
if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { retval = -EIO; break; } if (O_OPOST(tty) && !(test_bit(TTY_HW_COOK_OUT, &tty->flags))) { while (nr >0) { ssize_t num = process_output_block(tty, b, nr); ...
if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { retval = -EIO; break; } if (O_OPOST(tty) && !(test_bit(TTY_HW_COOK_OUT, &tty->flags))) { while (nr > 0) { ssize_t num = process_output_block(tty, b, nr); ...
if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { retval = -EIO; break; } if (O_OPOST(tty) && !(test_bit(TTY_HW_COOK_OUT, &tty->flags))) { while (nr > 0) { ssize_t num = process_output_block(tty, b, nr); ...
if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { retval = -EIO; break; } /* 自行定义了输出方式 */ if (O_OPOST(tty) && !(test_bit(TTY_HW_COOK_OUT, &tty->flags))) { ... } else { while (nr > 0) { /...