PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions | Variables
child-syn-read.c File Reference
#include <random.h>
#include <stdio.h>
#include <stdlib.h>
#include <syscall.h>
#include "tests/lib.h"
#include "tests/filesys/base/syn-read.h"
Include dependency graph for child-syn-read.c:

Go to the source code of this file.

Functions

int main (int argc, const char *argv[])
 

Variables

const char * test_name = "child-syn-read"
 Child process for syn-read test. More...
 
static char buf [BUF_SIZE]
 

Function Documentation

◆ main()

int main ( int argc   ,
const char *  argv[] 
)

Definition at line 19 of file child-syn-read.c.

References atoi(), buf, CHECK, close(), compare_bytes(), file_name, open(), quiet, random_bytes(), random_init(), and read().

Here is the call graph for this function:

Variable Documentation

◆ buf

char buf[BUF_SIZE]
static

◆ test_name

const char* test_name = "child-syn-read"

Child process for syn-read test.

Reads the contents of a test file a byte at a time, in the hope that this will take long enough that we can get a significant amount of contention in the kernel file system code.

Definition at line 14 of file child-syn-read.c.

Referenced by main().