XenevaOS
Loading...
Searching...
No Matches
Functions | Variables
pipe.cpp File Reference
#include <Fs\pipe.h>
#include <Mm\kmalloc.h>
#include <Fs\vfs.h>
#include <_null.h>
#include <string.h>
#include <Hal\serial.h>
#include <Hal/x86_64_hal.h>
Include dependency graph for pipe.cpp:

Functions

size_t AuPipeUnread (AuPipe *pipe)
 AuPipeUnread – get the available read space from the pipe.
 
size_t AuPipeGetAvailableBytes (AuPipe *pipe)
 
void AuPipeIncrementRead (AuPipe *pipe)
 
void AuPipeIncrementWrite (AuPipe *pipe)
 
void AuPipeIncrementWriteAmount (AuPipe *pipe, size_t amount)
 
size_t AuPipeRead (AuVFSNode *fs, AuVFSNode *file, uint64_t *buffer, uint32_t length)
 
size_t AuPipeWrite (AuVFSNode *fs, AuVFSNode *file, uint64_t *buffer, uint32_t length)
 
AuVFSNodeAuPipeOpen (AuVFSNode *node, char *path)
 
int AuPipeFSAddFile (AuVFSNode *fs, char *path, AuVFSNode *file)
 AuPipeFSAddFile – adds a file/directory.
 
int AuPipeFSRemoveFile (AuVFSNode *fs, char *path)
 
int AuPipeClose (AuVFSNode *fs, AuVFSNode *file)
 
int AuCreatePipe (char *name, size_t sz)
 AuCreatePipe – creates a new pipe.
 
AuVFSNodeAuPipeFSOpen (AuVFSNode *fs, char *path)
 
void AuPipeFSInitialise ()
 AuPipeFSInitialise – initialise the pipe filesystem.
 

Variables

AuVFSNodepipeFS
 

Function Documentation

◆ AuCreatePipe()

int AuCreatePipe ( char *  name,
size_t  sz 
)

AuCreatePipe – creates a new pipe.

Parameters
name– name of the pipe
sz– Size of the pipe

◆ AuPipeClose()

int AuPipeClose ( AuVFSNode fs,
AuVFSNode file 
)

◆ AuPipeFSAddFile()

int AuPipeFSAddFile ( AuVFSNode fs,
char *  path,
AuVFSNode file 
)

AuPipeFSAddFile – adds a file/directory.

Parameters
fs– pointer to device file system
path– path of the file
file– file to add to dev fs
Returns
0 on success -1 failure

◆ AuPipeFSInitialise()

void AuPipeFSInitialise ( )

AuPipeFSInitialise – initialise the pipe filesystem.

◆ AuPipeFSOpen()

AuVFSNode * AuPipeFSOpen ( AuVFSNode fs,
char *  path 
)

◆ AuPipeFSRemoveFile()

int AuPipeFSRemoveFile ( AuVFSNode fs,
char *  path 
)

◆ AuPipeGetAvailableBytes()

size_t AuPipeGetAvailableBytes ( AuPipe pipe)

◆ AuPipeIncrementRead()

void AuPipeIncrementRead ( AuPipe pipe)

◆ AuPipeIncrementWrite()

void AuPipeIncrementWrite ( AuPipe pipe)

◆ AuPipeIncrementWriteAmount()

void AuPipeIncrementWriteAmount ( AuPipe pipe,
size_t  amount 
)

◆ AuPipeOpen()

AuVFSNode * AuPipeOpen ( AuVFSNode node,
char *  path 
)

◆ AuPipeRead()

size_t AuPipeRead ( AuVFSNode fs,
AuVFSNode file,
uint64_t buffer,
uint32_t  length 
)

◆ AuPipeUnread()

size_t AuPipeUnread ( AuPipe pipe)

AuPipeUnread – get the available read space from the pipe.

Parameters
pipe– Pointer to the pipe

◆ AuPipeWrite()

size_t AuPipeWrite ( AuVFSNode fs,
AuVFSNode file,
uint64_t buffer,
uint32_t  length 
)

Variable Documentation

◆ pipeFS

AuVFSNode* pipeFS

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.