src/devNull.c File Reference

More...

#include <syscall.h>

Include dependency graph for devNull.c:


Functions

static int null_open (const char *path, int flags, int mode)
 Is not called for null.
static int null_close (int fd)
 Is not called for null.
static int null_write (int fd, const void *ptr, int len)
 Writes to null device.
static int null_read (int fd, void *ptr, int len)
 Reads from the null uart.

Variables

const devoptab_t null_devoptab
 null table

Detailed Description

Prints will be all lost. The prints will be not shown to the user.

Author:
Rohan Kangralkar
Date:
04/05/2011
LastChange:
Id
devNull.c 1069 2013-02-25 18:19:21Z ovaskevi

Function Documentation

static int null_close ( int  fd  )  [static]

Is not called for null.

Parameters:
fd file descriptor
Returns:
negative for null

static int null_open ( const char *  path,
int  flags,
int  mode 
) [static]

Is not called for null.

Parameters:
path file to be opened
flags opening flags
mode opening mode
Returns:
failure for null

static int null_read ( int  fd,
void *  ptr,
int  len 
) [static]

Reads from the null uart.

Parameters:
fd file descriptor
ptr pointer to buffer where the read data will be placed
len length og the expected data
Returns:
number of char read

static int null_write ( int  fd,
const void *  ptr,
int  len 
) [static]

Writes to null device.

Parameters:
fd file descriptor
ptr pointer to the buffer to be tx
len length of data to be transfered
Returns:
number of bytes written.


Variable Documentation

const devoptab_t null_devoptab

Initial value:

null table


Generated on 3 Mar 2014 for PAL bare-c Library by  doxygen 1.4.7