kmem.h (270759) | kmem.h (270861) |
---|---|
1/*- 2 * Copyright (c) 2007 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2007 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/cddl/compat/opensolaris/sys/kmem.h 270759 2014-08-28 19:50:08Z smh $ | 26 * $FreeBSD: head/sys/cddl/compat/opensolaris/sys/kmem.h 270861 2014-08-30 21:44:32Z smh $ |
27 */ 28 29#ifndef _OPENSOLARIS_SYS_KMEM_H_ 30#define _OPENSOLARIS_SYS_KMEM_H_ 31 32#include <sys/param.h> 33#include <sys/proc.h> 34#include <sys/malloc.h> --- 26 unchanged lines hidden (view full) --- 61 int (*kc_constructor)(void *, void *, int); 62 void (*kc_destructor)(void *, void *); 63 void *kc_private; 64} kmem_cache_t; 65 66void *zfs_kmem_alloc(size_t size, int kmflags); 67void zfs_kmem_free(void *buf, size_t size); 68uint64_t kmem_size(void); | 27 */ 28 29#ifndef _OPENSOLARIS_SYS_KMEM_H_ 30#define _OPENSOLARIS_SYS_KMEM_H_ 31 32#include <sys/param.h> 33#include <sys/proc.h> 34#include <sys/malloc.h> --- 26 unchanged lines hidden (view full) --- 61 int (*kc_constructor)(void *, void *, int); 62 void (*kc_destructor)(void *, void *); 63 void *kc_private; 64} kmem_cache_t; 65 66void *zfs_kmem_alloc(size_t size, int kmflags); 67void zfs_kmem_free(void *buf, size_t size); 68uint64_t kmem_size(void); |
69uint64_t kmem_used(void); |
|
69u_int kmem_page_count(void); 70 71/* 72 * The return values from kmem_free_* are only valid once the pagedaemon 73 * has been initialised, before then they return 0. 74 */ 75u_int kmem_free_count(void); 76u_int kmem_free_target(void); --- 20 unchanged lines hidden --- | 70u_int kmem_page_count(void); 71 72/* 73 * The return values from kmem_free_* are only valid once the pagedaemon 74 * has been initialised, before then they return 0. 75 */ 76u_int kmem_free_count(void); 77u_int kmem_free_target(void); --- 20 unchanged lines hidden --- |