tmpfs.h (313078) | tmpfs.h (346286) |
---|---|
1/* $NetBSD: tmpfs.h,v 1.26 2007/02/22 06:37:00 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* $NetBSD: tmpfs.h,v 1.26 2007/02/22 06:37:00 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: stable/11/sys/fs/tmpfs/tmpfs.h 313078 2017-02-02 01:18:54Z kib $ | 32 * $FreeBSD: stable/11/sys/fs/tmpfs/tmpfs.h 346286 2019-04-16 17:43:14Z kib $ |
33 */ 34 35#ifndef _FS_TMPFS_TMPFS_H_ 36#define _FS_TMPFS_TMPFS_H_ 37 38#include <sys/dirent.h> 39#include <sys/mount.h> 40#include <sys/queue.h> --- 284 unchanged lines hidden (view full) --- 325#define TMPFS_VNODE_DOOMED 4 326#define TMPFS_VNODE_WRECLAIM 8 327 328/* 329 * Internal representation of a tmpfs mount point. 330 */ 331struct tmpfs_mount { 332 /* | 33 */ 34 35#ifndef _FS_TMPFS_TMPFS_H_ 36#define _FS_TMPFS_TMPFS_H_ 37 38#include <sys/dirent.h> 39#include <sys/mount.h> 40#include <sys/queue.h> --- 284 unchanged lines hidden (view full) --- 325#define TMPFS_VNODE_DOOMED 4 326#define TMPFS_VNODE_WRECLAIM 8 327 328/* 329 * Internal representation of a tmpfs mount point. 330 */ 331struct tmpfs_mount { 332 /* |
333 * Original value of the "size" parameter, for reference purposes, 334 * mostly. 335 */ 336 off_t tm_size_max; 337 /* |
|
333 * Maximum number of memory pages available for use by the file 334 * system, set during mount time. This variable must never be 335 * used directly as it may be bigger than the current amount of 336 * free memory; in the extreme case, it will hold the ULONG_MAX 337 * value. 338 */ 339 u_long tm_pages_max; 340 --- 91 unchanged lines hidden (view full) --- 432 struct componentname *, char *); 433void tmpfs_check_mtime(struct vnode *); 434void tmpfs_dir_attach(struct vnode *, struct tmpfs_dirent *); 435void tmpfs_dir_detach(struct vnode *, struct tmpfs_dirent *); 436void tmpfs_dir_destroy(struct tmpfs_mount *, struct tmpfs_node *); 437struct tmpfs_dirent * tmpfs_dir_lookup(struct tmpfs_node *node, 438 struct tmpfs_node *f, 439 struct componentname *cnp); | 338 * Maximum number of memory pages available for use by the file 339 * system, set during mount time. This variable must never be 340 * used directly as it may be bigger than the current amount of 341 * free memory; in the extreme case, it will hold the ULONG_MAX 342 * value. 343 */ 344 u_long tm_pages_max; 345 --- 91 unchanged lines hidden (view full) --- 437 struct componentname *, char *); 438void tmpfs_check_mtime(struct vnode *); 439void tmpfs_dir_attach(struct vnode *, struct tmpfs_dirent *); 440void tmpfs_dir_detach(struct vnode *, struct tmpfs_dirent *); 441void tmpfs_dir_destroy(struct tmpfs_mount *, struct tmpfs_node *); 442struct tmpfs_dirent * tmpfs_dir_lookup(struct tmpfs_node *node, 443 struct tmpfs_node *f, 444 struct componentname *cnp); |
440int tmpfs_dir_getdents(struct tmpfs_node *, struct uio *, int, 441 u_long *, int *); | 445int tmpfs_dir_getdents(struct tmpfs_mount *, struct tmpfs_node *, 446 struct uio *, int, u_long *, int *); |
442int tmpfs_dir_whiteout_add(struct vnode *, struct componentname *); 443void tmpfs_dir_whiteout_remove(struct vnode *, struct componentname *); 444int tmpfs_reg_resize(struct vnode *, off_t, boolean_t); 445int tmpfs_chflags(struct vnode *, u_long, struct ucred *, struct thread *); 446int tmpfs_chmod(struct vnode *, mode_t, struct ucred *, struct thread *); 447int tmpfs_chown(struct vnode *, uid_t, gid_t, struct ucred *, 448 struct thread *); 449int tmpfs_chsize(struct vnode *, u_quad_t, struct ucred *, struct thread *); 450int tmpfs_chtimes(struct vnode *, struct vattr *, struct ucred *cred, 451 struct thread *); 452void tmpfs_itimes(struct vnode *, const struct timespec *, 453 const struct timespec *); 454 | 447int tmpfs_dir_whiteout_add(struct vnode *, struct componentname *); 448void tmpfs_dir_whiteout_remove(struct vnode *, struct componentname *); 449int tmpfs_reg_resize(struct vnode *, off_t, boolean_t); 450int tmpfs_chflags(struct vnode *, u_long, struct ucred *, struct thread *); 451int tmpfs_chmod(struct vnode *, mode_t, struct ucred *, struct thread *); 452int tmpfs_chown(struct vnode *, uid_t, gid_t, struct ucred *, 453 struct thread *); 454int tmpfs_chsize(struct vnode *, u_quad_t, struct ucred *, struct thread *); 455int tmpfs_chtimes(struct vnode *, struct vattr *, struct ucred *cred, 456 struct thread *); 457void tmpfs_itimes(struct vnode *, const struct timespec *, 458 const struct timespec *); 459 |
455void tmpfs_set_status(struct tmpfs_node *node, int status); | 460void tmpfs_set_status(struct tmpfs_mount *tm, struct tmpfs_node *node, 461 int status); |
456void tmpfs_update(struct vnode *); 457int tmpfs_truncate(struct vnode *, off_t); 458struct tmpfs_dirent *tmpfs_dir_first(struct tmpfs_node *dnode, 459 struct tmpfs_dir_cursor *dc); 460struct tmpfs_dirent *tmpfs_dir_next(struct tmpfs_node *dnode, 461 struct tmpfs_dir_cursor *dc); 462 463/* --- 77 unchanged lines hidden --- | 462void tmpfs_update(struct vnode *); 463int tmpfs_truncate(struct vnode *, off_t); 464struct tmpfs_dirent *tmpfs_dir_first(struct tmpfs_node *dnode, 465 struct tmpfs_dir_cursor *dc); 466struct tmpfs_dirent *tmpfs_dir_next(struct tmpfs_node *dnode, 467 struct tmpfs_dir_cursor *dc); 468 469/* --- 77 unchanged lines hidden --- |