Xenomai API  2.6.5
vfile.c File Reference

This file is part of the Xenomai project. More...

Include dependency graph for vfile.c:

Functions

int xnvfile_init_snapshot (const char *name, struct xnvfile_snapshot *vfile, struct xnvfile_directory *parent)
 Initialize a snapshot-driven vfile. More...
 
int xnvfile_init_regular (const char *name, struct xnvfile_regular *vfile, struct xnvfile_directory *parent)
 Initialize a regular vfile. More...
 
int xnvfile_init_dir (const char *name, struct xnvfile_directory *vdir, struct xnvfile_directory *parent)
 Initialize a virtual directory entry. More...
 
int xnvfile_init_link (const char *from, const char *to, struct xnvfile_link *vlink, struct xnvfile_directory *parent)
 Initialize a virtual link entry. More...
 
void xnvfile_destroy (struct xnvfile *vfile)
 Removes a virtual file entry. More...
 
ssize_t xnvfile_get_blob (struct xnvfile_input *input, void *data, size_t size)
 Read in a data bulk written to the vfile. More...
 
ssize_t xnvfile_get_string (struct xnvfile_input *input, char *s, size_t maxlen)
 Read in a C-string written to the vfile. More...
 
ssize_t xnvfile_get_integer (struct xnvfile_input *input, long *valp)
 Evaluate the string written to the vfile as a long integer. More...
 

Variables

struct xnvfile_directory nkvfroot
 Xenomai vfile root directory. More...
 

Detailed Description

This file is part of the Xenomai project.

Note
Copyright (C) 2010 Philippe Gerum rpm@x.nosp@m.enom.nosp@m.ai.or.nosp@m.g

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.