xref: /netbsd-src/sys/fs/tmpfs/tmpfs_args.h (revision f00b7c9b12c2dd2f97558efacccb6e8f68ad389b)
1*f00b7c9bSpooka /*	$NetBSD: tmpfs_args.h,v 1.3 2008/07/29 09:10:09 pooka Exp $	*/
297f4be43Spooka 
397f4be43Spooka /*
497f4be43Spooka  * Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
597f4be43Spooka  * All rights reserved.
697f4be43Spooka  *
797f4be43Spooka  * This code is derived from software contributed to The NetBSD Foundation
897f4be43Spooka  * by Julio M. Merino Vidal, developed as part of Google's Summer of Code
997f4be43Spooka  * 2005 program.
1097f4be43Spooka  *
1197f4be43Spooka  * Redistribution and use in source and binary forms, with or without
1297f4be43Spooka  * modification, are permitted provided that the following conditions
1397f4be43Spooka  * are met:
1497f4be43Spooka  * 1. Redistributions of source code must retain the above copyright
1597f4be43Spooka  *    notice, this list of conditions and the following disclaimer.
1697f4be43Spooka  * 2. Redistributions in binary form must reproduce the above copyright
1797f4be43Spooka  *    notice, this list of conditions and the following disclaimer in the
1897f4be43Spooka  *    documentation and/or other materials provided with the distribution.
1997f4be43Spooka  *
2097f4be43Spooka  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2197f4be43Spooka  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2297f4be43Spooka  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2397f4be43Spooka  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2497f4be43Spooka  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2597f4be43Spooka  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2697f4be43Spooka  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2797f4be43Spooka  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2897f4be43Spooka  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2997f4be43Spooka  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3097f4be43Spooka  * POSSIBILITY OF SUCH DAMAGE.
3197f4be43Spooka  */
3297f4be43Spooka 
33966308f7Spooka #ifndef _FS_TMPFS_TMPFS_ARGS_H_
34966308f7Spooka #define _FS_TMPFS_TMPFS_ARGS_H_
35966308f7Spooka 
3697f4be43Spooka /*
3797f4be43Spooka  * This structure is used to communicate mount parameters between userland
3897f4be43Spooka  * and kernel space.
3997f4be43Spooka  */
4097f4be43Spooka #define TMPFS_ARGS_VERSION	1
4197f4be43Spooka struct tmpfs_args {
4297f4be43Spooka 	int			ta_version;
4397f4be43Spooka 
4497f4be43Spooka 	/* Size counters. */
4597f4be43Spooka 	ino_t			ta_nodes_max;
4697f4be43Spooka 	off_t			ta_size_max;
4797f4be43Spooka 
4897f4be43Spooka 	/* Root node attributes. */
4997f4be43Spooka 	uid_t			ta_root_uid;
5097f4be43Spooka 	gid_t			ta_root_gid;
5197f4be43Spooka 	mode_t			ta_root_mode;
5297f4be43Spooka };
5397f4be43Spooka 
54966308f7Spooka #endif /* _FS_TMPFS_TMPFS_ARGS_H_ */
55