include/fs_sysfs.h File Reference


Detailed Description

ProcDev/SysFS Interface.

Author:
John Hodge (thePowersGang)

Go to the source code of this file.

Functions

int SysFS_RegisterFile (char *Path, char *Data, int Length)
 Registers a file in the SysFS tree.
int SysFS_UpdateFile (int ID, char *Data, int Length)
 Updates the size/pointer associated with a SysFD file.
int SysFS_RemoveFile (int ID)
 Removes a file from the SysFS tree.

Function Documentation

int SysFS_RegisterFile ( char *  Path,
char *  Data,
int  Length 
)

Registers a file in the SysFS tree.

Parameters:
Path Path relative to the SysFS root (no .. or .)
Data File buffer address
Length Length of the file buffer
Returns:
An ID number to refer to the file, or -1 on error
Note:
Data must be maintained until SysFS_UpdateFile is called with a different buffer, or SysFS_RemoveFile is called.
int SysFS_RemoveFile ( int  ID  ) 

Removes a file from the SysFS tree.

Parameters:
ID Number returned by SysFS_Register
int SysFS_UpdateFile ( int  ID,
char *  Data,
int  Length 
)

Updates the size/pointer associated with a SysFD file.

Parameters:
ID Number returned by SysFS_Register
Data New buffer address
Length New length of the file
Returns:
Boolean Success
Generated on Mon Feb 14 15:21:30 2011 for Acess2 by  doxygen 1.6.3