P2K(3) | Library Functions Manual | P2K(3) |
struct p2k_mount *
p2k_init(uint32_t puffs_flags);
void
p2k_cancel(struct p2k_mount *p2m, int error);
int
p2k_setup_fs(struct p2k_mount *p2m, const char *vfsname, const char *devpath, const char *mountpath, int mntflags, void *arg, size_t alen);
p2k_setup_diskfs(struct p2k_mount *p2m, const char *vfsname, const char *devpath, int partition, const char *mountpath, int mntflags, void *arg, size_t alen);
int
p2k_mainloop(struct p2k_mount *p2m);
int
p2k_run_fs(const char *vfsname, const char *devpath, const char *mountpath, int mntflags, void *arg, size_t alen, uint32_t puffs_flags);
int
p2k_run_diskfs(const char *vfsname, const char *devpath, int partition, const char *mountpath, int mntflags, void *arg, size_t alen, uint32_t puffs_flags);
Calling the library interface function mounts the file system and, if succesful, starts handling requests. The parameters are handled by ukfs_mount() (see ukfs(3)), with the exception that mountpath and puffs_flags are handled by puffs(3). The "run_fs" variants of the interfaces are provided as a convenience for the common case. They execute all of init, setup and mainloop in one call.
January 7, 2011 | NetBSD 6.1 |