malloc_type
fw_xfer_alloc(struct malloc_type *type)
fw_xfer_alloc_buf(struct malloc_type *type, int send_len, int recv_len)
struct malloc_type *malloc;
struct fw_xfer *fw_xfer_alloc (struct malloc_type *);
struct fw_xfer *fw_xfer_alloc_buf (struct malloc_type *, int, int);
typedef struct malloc_type *usb_malloc_type;
struct malloc_type *mem, uint8_t iface_index)
usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq,
void *usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq,
static void usbd_delayed_free(void *data, struct malloc_type *mtype);
struct malloc_type *mtype;
usbd_delayed_free(void *data, struct malloc_type *mtype)
void **descp, uint16_t *sizep, struct malloc_type *mem,
bit_alloc(size_t _nbits, struct malloc_type *type, int flags)
struct malloc_type *mmsg,
static void malloc_slab_destroy(struct malloc_type *type,
malloc_mgt_init(struct malloc_type *type __unused,
malloc_mgt_uninit(struct malloc_type *type, struct kmalloc_mgt *mgt)
malloc_slab_destroy(struct malloc_type *type, struct kmalloc_slab **slabp)
malloc_mgt_poll(struct malloc_type *type)
_kmalloc_obj_debug(unsigned long size, struct malloc_type *type, int flags,
_kmalloc_obj(unsigned long size, struct malloc_type *type, int flags)
_kfree_obj(void *obj, struct malloc_type *type)
struct malloc_type *type, int flags,
krealloc(void *ptr, unsigned long size, struct malloc_type *type, int flags)
kmalloc_limit(struct malloc_type *type)
kstrdup_debug(const char *str, struct malloc_type *type,
kstrdup(const char *str, struct malloc_type *type)
kstrndup_debug(const char *str, size_t maxlen, struct malloc_type *type,
kstrndup(const char *str, size_t maxlen, struct malloc_type *type)
_kfree(void *ptr, struct malloc_type *type)
__read_frequently struct malloc_type *kmemstatistics; /* exported to vmstat */
static struct malloc_type *kmemstat_poll;
struct malloc_type *type = data;
struct malloc_type *type = data;
struct malloc_type *t;
struct malloc_type *type;
struct malloc_type *t;
kmalloc_raise_limit(struct malloc_type *type, size_t bytes)
kmalloc_set_unlimited(struct malloc_type *type)
kmalloc_create(struct malloc_type **typep, const char *descr)
struct malloc_type *type;
_kmalloc_create_obj(struct malloc_type **typep, const char *descr,
struct malloc_type *type;
kmalloc_destroy(struct malloc_type **typep)
_kmalloc_debug(unsigned long size, struct malloc_type *type, int flags,
_kmalloc(unsigned long size, struct malloc_type *type, int flags)
hashinit(int elements, struct malloc_type *type, u_long *hashmask)
hashdestroy(void *vhashtbl, struct malloc_type *type, u_long hashmask)
hashinit_ext(int elements, size_t size, struct malloc_type *type,
phashinit(int elements, struct malloc_type *type, u_long *nentries)
phashinit_ext(int elements, size_t size, struct malloc_type *type,
struct malloc_type;
alist_create(alist_blk_t blocks, struct malloc_type *mtype)
alist_destroy(alist_t bl, struct malloc_type *mtype)
struct malloc_type *mtype,
kobj_delete(kobj_t obj, struct malloc_type *mtype)
struct malloc_type *pf_src_tree_pl, *pf_rule_pl, *pf_pooladdr_pl;
struct malloc_type *pf_state_pl, *pf_state_key_pl, *pf_state_item_pl;
struct malloc_type *pf_altq_pl;
struct malloc_type *pf_frent_pl, *pf_frag_pl, *pf_cache_pl, *pf_cent_pl;
struct malloc_type *pf_state_scrub_pl;
struct malloc_type *pfr_ktable_pl;
struct malloc_type *pfr_kentry_pl;
struct malloc_type *pfr_kentry_pl2;
extern struct malloc_type *pf_src_tree_pl, *pf_rule_pl;
extern struct malloc_type *pf_state_pl, *pf_state_key_pl, *pf_state_item_pl,
extern struct malloc_type *pfr_ktable_pl, *pfr_kentry_pl;
extern struct malloc_type *pfr_kentry_pl2;
extern struct malloc_type *pf_cache_pl, *pf_cent_pl;
extern struct malloc_type *pf_state_scrub_pl;
extern struct malloc_type *pfi_addr_pl;
extern struct malloc_type *pf_frent_pl, *pf_frag_pl;
smb_zmalloc(unsigned long size, struct malloc_type *type, int flags)
void *smb_zmalloc(unsigned long size, struct malloc_type *type, int flags);
struct malloc_type *ks_next; /* next in list */
typedef struct malloc_type *malloc_type_t;
extern struct malloc_type type[1] /* ref as ptr */
struct malloc_type *type; /* who does this belong to */
alist_t alist_create(alist_blk_t, struct malloc_type *);
void alist_destroy(alist_t, struct malloc_type *);
struct malloc_type;
struct malloc_type *mmsg;
struct malloc_type *mmsg,
struct malloc_type *mtype,
void kobj_delete(kobj_t obj, struct malloc_type *mtype);
struct malloc_type;
struct malloc_type type##_obj[1] = { \
struct malloc_type type[1] = { \
struct malloc_type type##_obj[1] = { \
void contigfree(void *addr, unsigned long size, struct malloc_type *type)
void *contigmalloc(unsigned long size, struct malloc_type *type, int flags,
void malloc_mgt_init(struct malloc_type *type, struct kmalloc_mgt *mgt,
void malloc_mgt_uninit(struct malloc_type *type, struct kmalloc_mgt *mgt);
int malloc_mgt_poll(struct malloc_type *type);
void kmalloc_raise_limit(struct malloc_type *type, size_t bytes);
void kmalloc_set_unlimited(struct malloc_type *type);
void kmalloc_create(struct malloc_type **typep, const char *descr);
void kmalloc_destroy(struct malloc_type **typep);
void _kmalloc_create_obj(struct malloc_type **typep, const char *descr,
void *_kmalloc_debug(unsigned long size, struct malloc_type *type,
void *_kmalloc_obj_debug(unsigned long size, struct malloc_type *type,
struct malloc_type *type, int flags,
char *kstrdup_debug(const char *, struct malloc_type *,
char *kstrndup_debug(const char *, size_t maxlen, struct malloc_type *,
void *_kmalloc(unsigned long size, struct malloc_type *type, int flags)
void *_kmalloc_obj(unsigned long size, struct malloc_type *type, int flags)
__kmalloc(size_t _size, struct malloc_type *_type, int _flags)
__kmalloc_obj(size_t _size, struct malloc_type *_type, int _flags)
void *krealloc(void *addr, unsigned long size, struct malloc_type *type,
char *kstrdup(const char *, struct malloc_type *)
char *kstrndup(const char *, size_t maxlen, struct malloc_type *)
void _kfree(void *addr, struct malloc_type *type) __nonnull(2);
void _kfree_obj(void *addr, struct malloc_type *type) __nonnull(2);
long kmalloc_limit(struct malloc_type *type);
struct malloc_type type[1] = { \
struct malloc_type ZoneInfo; /* stats on meta-zones allocated */
struct malloc_type;
void *hashinit (int count, struct malloc_type *type, u_long *hashmask);
void hashdestroy(void *vhashtbl, struct malloc_type *type, u_long hashmask);
void *phashinit (int count, struct malloc_type *type, u_long *nentries);
struct malloc_type *type, u_long *hashmask);
struct malloc_type *type, u_long *nentries);
void ext2_free(void *, struct malloc_type *, const char *);
ext2_free(void *addr, struct malloc_type *type, const char *func)
struct malloc_type *m_misc;
struct malloc_type *m_inodes;
struct malloc_type *mchain_obj;
struct malloc_type *mio_obj;
struct malloc_type *mmsg;
struct malloc_type *minode_obj;
struct malloc_type *nm_mnode_obj; /* kmalloc store for nfsnode */
struct malloc_type *tm_node_zone_obj;
struct malloc_type *tm_dirent_zone_obj;
struct malloc_type *tm_name_zone;
struct malloc_type;
int ffs_mountfs(struct vnode *, struct mount *, struct malloc_type *);
static struct malloc_type *memtype[] = {
ffs_mountfs(struct vnode *devvp, struct mount *mp, struct malloc_type *mtype)
struct malloc_type *um_malloctype; /* The inodes malloctype */
struct malloc_type *type,
contigmalloc_map(unsigned long size, struct malloc_type *type,
contigfree(void *addr, unsigned long size, struct malloc_type *type)
struct malloc_type;
extern void *contigmalloc_map(u_long, struct malloc_type *, int,
const struct malloc_type *m1 = arg1;
const struct malloc_type *m2 = arg2;
struct malloc_type *ks;
struct malloc_type kmemstats[MAX_KMSTATS], *kmsp;
struct malloc_type *ss;
qsort(kmemstats, nkms, sizeof(struct malloc_type), mcompare);
cpuagg(const struct malloc_type *ks, enum ksuse use)
struct malloc_type *mchain_obj;
struct malloc_type *mio_obj;
struct malloc_type *mmsg;
struct malloc_type *minode_obj;