Lines Matching refs:vnode
44 #include "vnode.h"
72 int (*open)(struct Vnode *vnode);
73 int (*close)(struct Vnode *vnode);
74 ssize_t (*read)(struct Vnode *vnode, unsigned char *buffer,
76 ssize_t (*write)(struct Vnode *vnode, const unsigned char *buffer,
78 int (*geometry)(struct Vnode *vnode, struct geometry *geometry);
79 int (*ioctl)(struct Vnode *vnode, int cmd, unsigned long arg);
80 int (*unlink)(struct Vnode *vnode);
94 * Register a character driver vnode the pseudo file system.
97 * path - The path to the vnode to create
100 * priv - Private, user data that will be associated with the vnode.
103 * Zero on success (with the vnode point in 'vnode'); A negated errno
108 * EEXIST - An vnode already exists at 'path'
128 * Register a block driver vnode the pseudo file system.
138 * path - The path to the vnode to create
141 * priv - Private, user data that will be associated with the vnode.
144 * Zero on success (with the vnode point in 'vnode'); A negated errno
149 * EEXIST - An vnode already exists at 'path'
162 * Remove the character driver vnode at 'path' from the pseudo-file system
165 * Zero on success (with the vnode point in 'vnode'); A negated errno
185 * Remove the block driver vnode at 'path' from the pseudo-file system
188 * path - The path that the vnode to be destroyed.
191 * Zero on success (with the vnode point in 'vnode'); A negated errno
213 * Return the vnode of the block driver specified by 'pathname'
219 * ppvnode - address of the location to return the vnode reference
226 * ENOTBLK - The vnode associated with the pathname is not a block driver
276 * Call the close method and release the vnode
279 * vnode - reference to the vnode of a block driver opened by open_blockdriver
284 * EINVAL - vnode is NULL
285 * ENOTBLK - The vnode is not a block driver
293 int close_blockdriver(struct Vnode *vnode);