MentOS  0.8.0
The Mentoring Operating System
Macros | Functions
proc_video.c File Reference

Contains callbacks for procv system files. More...

Macros

#define __DEBUG_HEADER__   "[PROCV ]"
 Change header.
 
#define __DEBUG_LEVEL__   LOGLEVEL_NOTICE
 Set log level.
 

Functions

void print_rb (fs_rb_scancode_t *rb)
 Prints the ring-buffer. More...
 
static ssize_t procv_read (vfs_file_t *file, char *buf, off_t offset, size_t nbyte)
 Read function for the proc video system. More...
 

Detailed Description

Contains callbacks for procv system files.

Function Documentation

◆ print_rb()

void print_rb ( fs_rb_scancode_t *  rb)

Prints the ring-buffer.

Parameters
rbthe ring-buffer to print.

◆ procv_read()

static ssize_t procv_read ( vfs_file_t file,
char *  buf,
off_t  offset,
size_t  nbyte 
)
static

Read function for the proc video system.

Parameters
fileThe file.
bufBuffer where the read content must be placed.
offsetOffset from which we start reading from the file.
nbyteThe number of bytes to read.
Returns
The number of red bytes.