Home
last modified time | relevance | path

Searched refs:malloc_type (Results 1 – 25 of 46) sorted by relevance

12

/freebsd/sys/sys/
H A Dmalloc.h116 struct malloc_type { struct
117 struct malloc_type *ks_next; /* Next in global chain. */ argument
145 struct malloc_type type[1] = { \
158 extern struct malloc_type type[1]
180 typedef void malloc_type_list_func_t(struct malloc_type *, void *);
183 void contigfree(void *addr, unsigned long, struct malloc_type *type);
184 void *contigmalloc(unsigned long size, struct malloc_type *type, int flags,
188 void *contigmalloc_domainset(unsigned long size, struct malloc_type *type,
192 void free(void *addr, struct malloc_type *type);
193 void zfree(void *addr, struct malloc_type *type);
[all …]
H A Dkobj.h43 struct malloc_type;
198 struct malloc_type *mtype,
210 void kobj_delete(kobj_t obj, struct malloc_type *mtype);
H A Dsystm.h131 struct malloc_type;
148 void hashdestroy(void *, struct malloc_type *, u_long);
149 void *hashinit(int count, struct malloc_type *type, u_long *hashmask);
150 void *hashinit_flags(int count, struct malloc_type *type,
155 void *phashinit(int count, struct malloc_type *type, u_long *nentries);
156 void *phashinit_flags(int count, struct malloc_type *type, u_long *nentries,
225 int asprintf(char **ret, struct malloc_type *mtp, const char *format,
232 int vasprintf(char **ret, struct malloc_type *mtp, const char *format,
H A Dlibkern.h125 struct malloc_type;
257 char *strdup_flags(const char *__restrict, struct malloc_type *, int);
259 char *strdup(const char *__restrict, struct malloc_type *);
261 char *strndup(const char *__restrict, size_t, struct malloc_type *);
H A Dbuf_ring.h358 struct buf_ring *buf_ring_alloc(int count, struct malloc_type *type, int flags,
360 void buf_ring_free(struct buf_ring *br, struct malloc_type *type);
/freebsd/sys/kern/
H A Dkern_malloc.c146 static struct malloc_type *kmemstatistics;
333 mtp_set_subzone(struct malloc_type *mtp) in mtp_set_subzone()
350 mtp_get_subzone(struct malloc_type *mtp) in mtp_get_subzone()
365 mtp_set_subzone(struct malloc_type *mtp) in mtp_set_subzone()
374 mtp_get_subzone(struct malloc_type *mtp) in mtp_get_subzone()
388 malloc_type_zone_allocated(struct malloc_type *mtp, unsigned long size, in malloc_type_zone_allocated()
418 malloc_type_allocated(struct malloc_type *mtp, unsigned long size) in malloc_type_allocated()
432 malloc_type_freed(struct malloc_type *mtp, unsigned long size) in malloc_type_freed()
480 contigmalloc(unsigned long osize, struct malloc_type *type, int flags, in contigmalloc()
507 contigmalloc_domainset(unsigned long osize, struct malloc_type *type, in contigmalloc_domainset()
[all …]
H A Dsubr_bufring.c37 buf_ring_alloc(int count, struct malloc_type *type, int flags, struct mtx *lock) in buf_ring_alloc()
59 buf_ring_free(struct buf_ring *br, struct malloc_type *type) in buf_ring_free()
H A Dsubr_hash.c376 hashinit_flags(int elements, struct malloc_type *type, u_long *hashmask, in hashinit_flags()
396 hashinit(int elements, struct malloc_type *type, u_long *hashmask) in hashinit()
403 hashdestroy(void *vhashtbl, struct malloc_type *type, u_long hashmask) in hashdestroy()
418 phashinit_flags(int elements, struct malloc_type *type, u_long *nentries, int flags) in phashinit_flags()
439 phashinit(int elements, struct malloc_type *type, u_long *nentries) in phashinit()
H A Dsubr_kobj.c292 kobj_create(kobj_class_t cls, struct malloc_type *mtype, int mflags) in kobj_create()
329 kobj_delete(kobj_t obj, struct malloc_type *mtype) in kobj_delete()
/freebsd/sys/vm/
H A Duma_dbg.c147 struct malloc_type **ksp; in mtrash_ctor()
155 size -= sizeof(struct malloc_type *); in mtrash_ctor()
166 ksp = (struct malloc_type **)mem; in mtrash_ctor()
167 ksp += size / sizeof(struct malloc_type *); in mtrash_ctor()
204 size -= sizeof(struct malloc_type *); in mtrash_dtor()
219 struct malloc_type **ksp; in mtrash_init()
228 ksp = (struct malloc_type **)mem; in mtrash_init()
229 ksp += (size / sizeof(struct malloc_type *)) - 1; in mtrash_init()
H A Dmemguard.h34 struct malloc_type;
42 void *memguard_realloc(void *, unsigned long, struct malloc_type *, int);
45 int memguard_cmp_mtp(struct malloc_type *, unsigned long);
H A Dmemguard.c80 static struct malloc_type *vm_memguard_mtype = NULL;
416 memguard_realloc(void *addr, unsigned long size, struct malloc_type *mtp, in memguard_realloc()
457 memguard_cmp_mtp(struct malloc_type *mtp, unsigned long size) in memguard_cmp_mtp()
/freebsd/sys/libkern/
H A Dstrdup.c40 strdup_flags(const char *string, struct malloc_type *type, int flags) in strdup_flags()
54 strdup(const char *string, struct malloc_type *type) in strdup()
H A Dasprintf.c33 vasprintf(char **buf, struct malloc_type *mtp, const char *format, va_list va) in vasprintf()
63 asprintf(char **buf, struct malloc_type *mtp, const char *format, ...) in asprintf()
H A Dstrndup.c38 strndup(const char *string, size_t maxlen, struct malloc_type *type) in strndup()
/freebsd/sys/dev/cxgbe/
H A Dt4_mp_ring.h42 struct malloc_type * mt;
62 ring_can_drain_t, struct malloc_type *, struct mtx *, int);
/freebsd/sys/net/
H A Dmp_ring.h50 struct malloc_type * mt;
66 mp_ring_can_drain_t, struct malloc_type *, int);
/freebsd/sys/dev/firewire/
H A Dfirewirereg.h250 struct malloc_type *malloc;
266 struct fw_xfer *fw_xfer_alloc (struct malloc_type *);
267 struct fw_xfer *fw_xfer_alloc_buf (struct malloc_type *, int, int);
273 int fw_xferlist_add (struct fw_xferlist *, struct malloc_type *, int, int, int,
H A Dfw_helpers.h120 fw_read_quadlet(struct firewire_comm *fc, struct malloc_type *mtype, in fw_read_quadlet()
157 fw_write_quadlet(struct firewire_comm *fc, struct malloc_type *mtype, in fw_write_quadlet()
212 fw_iso_free_chunks(struct fw_xferq *xferq, struct malloc_type *mtype) in fw_iso_free_chunks()
/freebsd/sys/nlm/
H A Dnlm.h55 size_t srcsize, struct malloc_type *type);
61 struct malloc_type *type);
/freebsd/sys/ufs/ffs/
H A Dffs_extern.h44 struct malloc_type;
88 int ffs_sbsearch(void *, struct fs **, int, struct malloc_type *,
94 int ffs_sbget(void *, struct fs **, off_t, int, struct malloc_type *,
/freebsd/sys/dev/usb/
H A Dusb_mbuf.c64 usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq, in usb_alloc_mbufs()
H A Dusbhid.h94 void **descp, uint16_t *sizep, struct malloc_type *mem,
H A Dusb_hid.c114 struct malloc_type *mem, uint8_t iface_index) in usbd_req_get_hid_desc()
H A Dusb_mbuf.h88 void *usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq,

12