pseudofs_internal.h revision 75295
1139825Simp/*- 2139740Sphk * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav 350974Swpaul * All rights reserved. 450974Swpaul * 550974Swpaul * Redistribution and use in source and binary forms, with or without 650974Swpaul * modification, are permitted provided that the following conditions 750974Swpaul * are met: 850974Swpaul * 1. Redistributions of source code must retain the above copyright 950974Swpaul * notice, this list of conditions and the following disclaimer 1050974Swpaul * in this position and unchanged. 1150974Swpaul * 2. Redistributions in binary form must reproduce the above copyright 1250974Swpaul * notice, this list of conditions and the following disclaimer in the 1350974Swpaul * documentation and/or other materials provided with the distribution. 1450974Swpaul * 3. The name of the author may not be used to endorse or promote products 1550974Swpaul * derived from this software without specific prior written permission. 1650974Swpaul * 1750974Swpaul * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1850974Swpaul * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1950974Swpaul * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2050974Swpaul * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2150974Swpaul * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2250974Swpaul * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2350974Swpaul * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2450974Swpaul * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2550974Swpaul * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2650974Swpaul * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2750974Swpaul * 2850974Swpaul * $FreeBSD: head/sys/fs/pseudofs/pseudofs_internal.h 75295 2001-04-07 19:51:12Z des $ 2950974Swpaul */ 3050974Swpaul 3150974Swpaul#ifndef _PSEUDOFS_INTERNAL_H_INCLUDED 3250974Swpaul#define _PSEUDOFS_INTERNAL_H_INCLUDED 3350974Swpaul 34122678Sobrien/* 35122678Sobrien * Sysctl subtree 36122678Sobrien */ 3750974SwpaulSYSCTL_DECL(_vfs_pfs); 3850974Swpaul 3950974Swpaul/* 4050974Swpaul * Vnode cache 4164963Swpaul */ 4264963Swpaulvoid pfs_vncache_load (void); 4364963Swpaulvoid pfs_vncache_unload (void); 4450974Swpaulint pfs_vncache_alloc (struct mount *, struct vnode **, 4550974Swpaul struct pfs_node *); 4650974Swpaulint pfs_vncache_free (struct vnode *); 4750974Swpaul 4850974Swpaul/* 4950974Swpaul * File number bitmap 5050974Swpaul */ 5150974Swpaulvoid pfs_fileno_load (void); 5250974Swpaulvoid pfs_fileno_unload (void); 5350974Swpaulvoid pfs_fileno_init (struct pfs_info *); 5450974Swpaulvoid pfs_fileno_uninit (struct pfs_info *); 5550974Swpaulvoid pfs_fileno_alloc (struct pfs_info *, struct pfs_node *); 5650974Swpaulvoid pfs_fileno_free (struct pfs_info *, struct pfs_node *); 5750974Swpaul 5850974Swpaul/* 5950974Swpaul * Shadow manager 6050974Swpaul */ 61150968Sglebiusvoid pfs_create_shadow (struct pfs_info *, struct pfs_node *, pid_t); 62150968Sglebiusvoid pfs_reap_shadows (pid_t); 63150968Sglebius 64150968Sglebius#endif 6550974Swpaul