Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sclp_rw.c File Reference
#include <linux/kmod.h>
#include <linux/types.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/ctype.h>
#include <asm/uaccess.h>
#include "sclp.h"
#include "sclp_rw.h"

Go to the source code of this file.

Macros

#define MAX_SCCB_ROOM   (PAGE_SIZE - sizeof(struct sclp_buffer))
 
#define SCLP_BUFFER_MAX_RETRY   1
 

Functions

struct sclp_buffersclp_make_buffer (void *page, unsigned short columns, unsigned short htab)
 
voidsclp_unmake_buffer (struct sclp_buffer *buffer)
 
int sclp_write (struct sclp_buffer *buffer, const unsigned char *msg, int count)
 
int sclp_buffer_space (struct sclp_buffer *buffer)
 
int sclp_chars_in_buffer (struct sclp_buffer *buffer)
 
void sclp_set_columns (struct sclp_buffer *buffer, unsigned short columns)
 
void sclp_set_htab (struct sclp_buffer *buffer, unsigned short htab)
 
int sclp_rw_init (void)
 
int sclp_emit_buffer (struct sclp_buffer *buffer, void(*callback)(struct sclp_buffer *, int))
 

Macro Definition Documentation

#define MAX_SCCB_ROOM   (PAGE_SIZE - sizeof(struct sclp_buffer))

Definition at line 26 of file sclp_rw.c.

#define SCLP_BUFFER_MAX_RETRY   1

Definition at line 370 of file sclp_rw.c.

Function Documentation

int sclp_buffer_space ( struct sclp_buffer buffer)

Definition at line 310 of file sclp_rw.c.

int sclp_chars_in_buffer ( struct sclp_buffer buffer)

Definition at line 324 of file sclp_rw.c.

int sclp_emit_buffer ( struct sclp_buffer buffer,
void(*)(struct sclp_buffer *, int callback 
)

Definition at line 445 of file sclp_rw.c.

struct sclp_buffer* sclp_make_buffer ( void page,
unsigned short  columns,
unsigned short  htab 
)
read

Definition at line 47 of file sclp_rw.c.

int sclp_rw_init ( void  )

Definition at line 356 of file sclp_rw.c.

void sclp_set_columns ( struct sclp_buffer buffer,
unsigned short  columns 
)

Definition at line 338 of file sclp_rw.c.

void sclp_set_htab ( struct sclp_buffer buffer,
unsigned short  htab 
)

Definition at line 347 of file sclp_rw.c.

void* sclp_unmake_buffer ( struct sclp_buffer buffer)

Definition at line 87 of file sclp_rw.c.

int sclp_write ( struct sclp_buffer buffer,
const unsigned char msg,
int  count 
)

Definition at line 180 of file sclp_rw.c.