xref: /netbsd-src/sys/fs/ntfs/ntfs_ihash.h (revision 9abeea588a683b579fee3ae9c763b3efd5a90ef9)
1*9abeea58Sad /*	$NetBSD: ntfs_ihash.h,v 1.4 2007/02/15 15:40:52 ad Exp $	*/
29accf4dfSjdolecek 
39accf4dfSjdolecek /*-
49accf4dfSjdolecek  * Copyright (c) 1998, 1999 Semen Ustimenko
59accf4dfSjdolecek  * All rights reserved.
69accf4dfSjdolecek  *
79accf4dfSjdolecek  * Redistribution and use in source and binary forms, with or without
89accf4dfSjdolecek  * modification, are permitted provided that the following conditions
99accf4dfSjdolecek  * are met:
109accf4dfSjdolecek  * 1. Redistributions of source code must retain the above copyright
119accf4dfSjdolecek  *    notice, this list of conditions and the following disclaimer.
129accf4dfSjdolecek  * 2. Redistributions in binary form must reproduce the above copyright
139accf4dfSjdolecek  *    notice, this list of conditions and the following disclaimer in the
149accf4dfSjdolecek  *    documentation and/or other materials provided with the distribution.
159accf4dfSjdolecek  *
169accf4dfSjdolecek  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
179accf4dfSjdolecek  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
189accf4dfSjdolecek  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
199accf4dfSjdolecek  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
209accf4dfSjdolecek  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
219accf4dfSjdolecek  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
229accf4dfSjdolecek  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
239accf4dfSjdolecek  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
249accf4dfSjdolecek  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
259accf4dfSjdolecek  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
269accf4dfSjdolecek  * SUCH DAMAGE.
279accf4dfSjdolecek  *
289accf4dfSjdolecek  *	Id: ntfs_ihash.h,v 1.3 1999/05/12 09:42:59 semenu Exp
299accf4dfSjdolecek  */
30*9abeea58Sad 
314bffed72Schristos #if !defined(_KERNEL)
324bffed72Schristos #error not supposed to be exposed to userland.
334bffed72Schristos #endif
349accf4dfSjdolecek 
35*9abeea58Sad #include <sys/mutex.h>
36*9abeea58Sad 
37*9abeea58Sad extern kmutex_t ntfs_hashlock;
3808fcacf4Sxtraeme void ntfs_nthashinit(void);
3908fcacf4Sxtraeme void ntfs_nthashreinit(void);
4008fcacf4Sxtraeme void ntfs_nthashdone(void);
4108fcacf4Sxtraeme struct ntnode   *ntfs_nthashlookup(dev_t, ino_t);
4208fcacf4Sxtraeme struct ntnode   *ntfs_nthashget(dev_t, ino_t);
4308fcacf4Sxtraeme void ntfs_nthashins(struct ntnode *);
4408fcacf4Sxtraeme void ntfs_nthashrem(struct ntnode *);
45