Back to index

avfs  1.0.1
Functions
local.h File Reference
#include "avfs.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int av_init_module_local ()

Function Documentation

Definition at line 450 of file local.c.

{
    int res;
    int flags = AVF_NEEDSLASH | AVF_NOLOCK;
    struct avfs *avfs;

    res = av_new_avfs("local", NULL, AV_VER, flags, NULL, &avfs);
    if(res < 0)
        return res;

    avfs->lookup     = local_lookup;

    avfs->open       = local_open;
    avfs->close      = local_close;
    avfs->read       = local_read;
    avfs->write      = local_write;
    avfs->lseek      = local_lseek;
    avfs->readdir    = local_readdir;
    avfs->access     = local_access;
    avfs->getattr    = local_getattr;
    avfs->setattr    = local_setattr;
    avfs->readlink   = local_readlink;
    avfs->unlink     = local_unlink;
    avfs->rmdir      = local_rmdir;
    avfs->mkdir      = local_mkdir;
    avfs->mknod      = local_mknod;
    avfs->rename     = local_rename;
    avfs->link       = local_link;
    avfs->symlink    = local_symlink;
    avfs->truncate   = local_truncate;

    av_add_avfs(avfs);
    
    return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function: