nfs-ganesha 1.4
|
00001 /* 00002 * vim:expandtab:shiftwidth=8:tabstop=8: 00003 * 00004 * Copyright (C) 2012, The Linux Box Corporation 00005 * Contributor : Matt Benjamin <matt@linuxbox.com> 00006 * 00007 * Some portions Copyright CEA/DAM/DIF (2008) 00008 * contributeur : Philippe DENIEL philippe.deniel@cea.fr 00009 * Thomas LEIBOVICI thomas.leibovici@cea.fr 00010 * 00011 * 00012 * This program is free software; you can redistribute it and/or 00013 * modify it under the terms of the GNU Lesser General Public 00014 * License as published by the Free Software Foundation; either 00015 * version 3 of the License, or (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 * Lesser General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU Lesser General Public 00023 * License along with this library; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00025 * 00026 * ------------- 00027 */ 00028 00042 #ifndef _CACHE_INODE_WEAKREF_H 00043 #define _CACHE_INODE_WEAKREF_H 00044 00045 #ifdef HAVE_CONFIG_H 00046 #include "config.h" 00047 #endif /* HAVE_CONFIG_H */ 00048 00049 #ifdef _SOLARIS 00050 #include "solaris_port.h" 00051 #endif /* _SOLARIS */ 00052 00053 #include "log.h" 00054 #include "cache_inode.h" 00055 #include "generic_weakref.h" 00056 00057 void cache_inode_weakref_init(void); 00058 gweakref_t cache_inode_weakref_insert(struct cache_entry_t *entry); 00059 cache_entry_t *cache_inode_weakref_get(gweakref_t *ref, 00060 uint32_t flags); 00061 void cache_inode_weakref_delete(gweakref_t *ref); 00062 void cache_inode_weakref_shutdown(); 00063 00064 #endif /* _CACHE_INODE_WEAKREF_H */