Coda Distributed File System
|
#include <vproc.h>
Public Member Functions | |
vproc (const char *, PROCBODY, vproctype, int=VPROC_DEFAULT_STACK_SIZE, int=LWP_NORMAL_PRIORITY) | |
vproc (vproc &) | |
int | operator= (vproc &) |
virtual | ~vproc () |
void | Begin_VFS (Volid *, int, int=-1) EXCLUDES_TRANSACTION |
void | Begin_VFS (VenusFid *fid, int op, int arg=-1) EXCLUDES_TRANSACTION |
void | End_VFS (int *=0) EXCLUDES_TRANSACTION |
void | root (struct venus_cnode *) |
void | statfs (struct coda_statfs *) |
void | sync () |
void | vget (struct venus_cnode *, VenusFid *, int what=RC_STATUS) EXCLUDES_TRANSACTION |
void | open (struct venus_cnode *, int) EXCLUDES_TRANSACTION |
void | close (struct venus_cnode *, int) EXCLUDES_TRANSACTION |
void | ioctl (struct venus_cnode *, unsigned char nr, struct ViceIoctl *, int) EXCLUDES_TRANSACTION |
void | select (struct venus_cnode *, int) |
void | getattr (struct venus_cnode *, struct coda_vattr *) EXCLUDES_TRANSACTION |
void | setattr (struct venus_cnode *, struct coda_vattr *) EXCLUDES_TRANSACTION |
void | access (struct venus_cnode *, int) EXCLUDES_TRANSACTION |
void | lookup (struct venus_cnode *, const char *, struct venus_cnode *, int) EXCLUDES_TRANSACTION |
void | create (struct venus_cnode *, char *, struct coda_vattr *, int, int, struct venus_cnode *) EXCLUDES_TRANSACTION |
void | remove (struct venus_cnode *, char *) EXCLUDES_TRANSACTION |
void | link (struct venus_cnode *, struct venus_cnode *, char *) EXCLUDES_TRANSACTION |
void | rename (struct venus_cnode *, char *, struct venus_cnode *, char *) EXCLUDES_TRANSACTION |
void | mkdir (struct venus_cnode *, char *, struct coda_vattr *, struct venus_cnode *) EXCLUDES_TRANSACTION |
void | rmdir (struct venus_cnode *, char *) EXCLUDES_TRANSACTION |
void | symlink (struct venus_cnode *, char *, struct coda_vattr *, char *) EXCLUDES_TRANSACTION |
void | readlink (struct venus_cnode *, struct coda_string *) EXCLUDES_TRANSACTION |
void | fsync (struct venus_cnode *) EXCLUDES_TRANSACTION |
void | read (struct venus_cnode *node, uint64_t pos, int64_t count) EXCLUDES_TRANSACTION |
void | write (struct venus_cnode *node, uint64_t pos, int64_t count) EXCLUDES_TRANSACTION |
void | read_finish (struct venus_cnode *node, uint64_t pos, int64_t count) EXCLUDES_TRANSACTION |
void | write_finish (struct venus_cnode *node, uint64_t pos, int64_t count) EXCLUDES_TRANSACTION |
void | mmap (struct venus_cnode *node, uint64_t pos, int64_t count) EXCLUDES_TRANSACTION |
int | namev (char *, int, struct venus_cnode *) EXCLUDES_TRANSACTION |
void | GetPath (VenusFid *, char *, int *, int=1) EXCLUDES_TRANSACTION |
const char * | expansion (const char *path) |
void | verifyname (char *name, int flags) |
void | GetStamp (char *) |
void | print () |
void | print (FILE *) |
void | print (int) |
![]() | |
olink () | |
olink (olink &) | |
int | operator= (olink &) |
virtual | ~olink () |
virtual void | print () |
virtual void | print (FILE *) |
virtual void | print (int) |
int | otagmatch (void *otag, otagcompare_t cmpfn) |
Public Attributes | |
vproctype | type |
int | stacksize |
int | lwpri |
int | seq |
struct uarea | u |
unsigned | idle: 1 |
unsigned | interrupted: 1 |
struct vcbevent * | ve |
Protected Member Functions | |
void | start_thread (void) EXCLUDES_TRANSACTION |
virtual void | main (void) |
Protected Attributes | |
PROCESS | lwpid |
char * | name |
PROCBODY | func |
int | vpid |
rvm_perthread_t | rvm_data |
struct Lock | init_lock |
Friends | |
class | vproc_iterator |
void | VprocInit () |
void | Rtry_Wait () |
void | Rtry_Signal () |
vproc * | FindVproc (int) |
void | VprocPreamble (void *) |
vproc * | VprocSelf () |
int | VprocIdle () |
int | VprocInterrupted () |
void | PrintVprocs (int) |
void | PrintWorkers (int) |
void | PrintMariners (int) |
vproc::vproc | ( | const char * | n, |
PROCBODY | f, | ||
vproctype | t, | ||
int | stksize = VPROC_DEFAULT_STACK_SIZE , |
||
int | priority = LWP_NORMAL_PRIORITY |
||
) |
vproc::vproc | ( | vproc & | ) |
|
virtual |
void vproc::access | ( | struct venus_cnode * | cp, |
int | mode | ||
) |
|
inline |
void vproc::Begin_VFS | ( | Volid * | volid, |
int | vfsop, | ||
int | volmode = -1 |
||
) |
void vproc::close | ( | struct venus_cnode * | cp, |
int | flags | ||
) |
void vproc::create | ( | struct venus_cnode * | dcp, |
char * | name, | ||
struct coda_vattr * | vap, | ||
int | excl, | ||
int | flags, | ||
struct venus_cnode * | cp | ||
) |
void vproc::End_VFS | ( | int * | retryp = 0 | ) |
const char * vproc::expansion | ( | const char * | path | ) |
void vproc::fsync | ( | struct venus_cnode * | cp | ) |
void vproc::getattr | ( | struct venus_cnode * | cp, |
struct coda_vattr * | vap | ||
) |
void vproc::GetPath | ( | VenusFid * | fid, |
char * | out, | ||
int * | outlen, | ||
int | fullpath = 1 |
||
) |
void vproc::GetStamp | ( | char * | buf | ) |
void vproc::ioctl | ( | struct venus_cnode * | cp, |
unsigned char | nr, | ||
struct ViceIoctl * | data, | ||
int | flags | ||
) |
void vproc::link | ( | struct venus_cnode * | scp, |
struct venus_cnode * | dcp, | ||
char * | toname | ||
) |
void vproc::lookup | ( | struct venus_cnode * | dcp, |
const char * | name, | ||
struct venus_cnode * | cp, | ||
int | flags | ||
) |
|
protectedvirtual |
Reimplemented in callbackserver, probeslave, mariner, reintegrator, resolver, and worker.
void vproc::mkdir | ( | struct venus_cnode * | dcp, |
char * | name, | ||
struct coda_vattr * | vap, | ||
struct venus_cnode * | cp | ||
) |
void vproc::mmap | ( | struct venus_cnode * | node, |
uint64_t | pos, | ||
int64_t | count | ||
) |
Memory map file operation
node | Venus cnode pointer holding file's metadata |
pos | Offset within the file |
count | Number of bytes mapped into memory |
int vproc::namev | ( | char * | path, |
int | flags, | ||
struct venus_cnode * | vpp | ||
) |
void vproc::open | ( | struct venus_cnode * | cp, |
int | flags | ||
) |
int vproc::operator= | ( | vproc & | vp | ) |
|
virtual |
Reimplemented from olink.
|
virtual |
Reimplemented from olink.
|
virtual |
Reimplemented from olink.
void vproc::read | ( | struct venus_cnode * | node, |
uint64_t | pos, | ||
int64_t | count | ||
) |
Read file operation
node | Venus cnode pointer holding file's metadata |
pos | Offset within the file |
count | Number of bytes to be read from the file |
void vproc::read_finish | ( | struct venus_cnode * | node, |
uint64_t | pos, | ||
int64_t | count | ||
) |
Signal the end of a synchronous read file operation
node | Venus cnode pointer holding file's metadata |
pos | Offset within the file |
count | Number of bytes read from the file |
void vproc::readlink | ( | struct venus_cnode * | cp, |
struct coda_string * | string | ||
) |
void vproc::remove | ( | struct venus_cnode * | dcp, |
char * | name | ||
) |
void vproc::rename | ( | struct venus_cnode * | spcp, |
char * | name, | ||
struct venus_cnode * | tpcp, | ||
char * | toname | ||
) |
void vproc::rmdir | ( | struct venus_cnode * | dcp, |
char * | name | ||
) |
void vproc::root | ( | struct venus_cnode * | vpp | ) |
void vproc::select | ( | struct venus_cnode * | , |
int | |||
) |
void vproc::setattr | ( | struct venus_cnode * | cp, |
struct coda_vattr * | vap | ||
) |
|
protected |
void vproc::statfs | ( | struct coda_statfs * | sfs | ) |
void vproc::symlink | ( | struct venus_cnode * | dcp, |
char * | contents, | ||
struct coda_vattr * | vap, | ||
char * | name | ||
) |
void vproc::sync | ( | ) |
void vproc::verifyname | ( | char * | name, |
int | flags | ||
) |
void vproc::vget | ( | struct venus_cnode * | vpp, |
VenusFid * | vfid, | ||
int | what = RC_STATUS |
||
) |
void vproc::write | ( | struct venus_cnode * | node, |
uint64_t | pos, | ||
int64_t | count | ||
) |
Write file operation
node | Venus cnode pointer holding file's metadata |
pos | Offset within the file |
count | Number of bytes to be written to the file |
void vproc::write_finish | ( | struct venus_cnode * | node, |
uint64_t | pos, | ||
int64_t | count | ||
) |
Signal the end of a synchronous write file operation
node | Venus cnode pointer holding file's metadata |
pos | Offset within the file |
count | Number of bytes written to the file |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
unsigned vproc::idle |
|
protected |
unsigned vproc::interrupted |
|
protected |
int vproc::lwpri |
|
protected |
|
protected |
int vproc::seq |
int vproc::stacksize |
vproctype vproc::type |
struct uarea vproc::u |
struct vcbevent* vproc::ve |
|
protected |