READ_CHAN

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

read_chan - read function for tty  

SYNOPSIS

"SYNOPSIS"

ssize_t read_chan (struct tty_struct * tty, struct file * file, unsigned char __user * buf, size_t nr);  

ARGUMENTS

tty
tty device
file
file object
buf
userspace buffer pointer
nr
size of I/O
 

DESCRIPTION

Perform reads for the line discipline. We are guaranteed that the line discipline will not be closed under us but we may get multiple parallel readers and must handle this ourselves. We may also get a hangup. Always called in user context, may sleep.

This code must be sure never to sleep through a hangup.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:42 GMT, October 09, 2005