Home
last modified time | relevance | path

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

12

/freebsd-12.1/sys/sys/
H A Dmalloc.h113 struct malloc_type { struct
114 struct malloc_type *ks_next; /* Next in global chain. */ argument
142 struct malloc_type type[1] = { \
151 extern struct malloc_type type[1]
170 typedef void malloc_type_list_func_t(struct malloc_type *, void *);
181 void free(void *addr, struct malloc_type *type);
182 void free_domain(void *addr, struct malloc_type *type);
235 void *malloc_domainset(size_t size, struct malloc_type *type,
238 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
244 void malloc_type_freed(struct malloc_type *type, unsigned long size);
[all …]
H A Dsystm.h199 struct malloc_type;
217 void hashdestroy(void *, struct malloc_type *, u_long);
218 void *hashinit(int count, struct malloc_type *type, u_long *hashmask);
219 void *hashinit_flags(int count, struct malloc_type *type,
224 void *phashinit(int count, struct malloc_type *type, u_long *nentries);
225 void *phashinit_flags(int count, struct malloc_type *type, u_long *nentries,
281 int asprintf(char **ret, struct malloc_type *mtp, const char *format,
288 int vasprintf(char **ret, struct malloc_type *mtp, const char *format,
H A Dkobj.h43 struct malloc_type;
199 struct malloc_type *mtype,
211 void kobj_delete(kobj_t obj, struct malloc_type *mtype);
H A Dlibkern.h127 struct malloc_type;
176 char *strdup_flags(const char *__restrict, struct malloc_type *, int);
177 char *strdup(const char *__restrict, struct malloc_type *);
179 char *strndup(const char *__restrict, size_t, struct malloc_type *);
H A Dbuf_ring.h357 struct buf_ring *buf_ring_alloc(int count, struct malloc_type *type, int flags,
359 void buf_ring_free(struct buf_ring *br, struct malloc_type *type);
/freebsd-12.1/sys/vm/
H A Duma_dbg.c144 struct malloc_type **ksp; in mtrash_ctor()
153 size -= sizeof(struct malloc_type *); in mtrash_ctor()
154 ksp = (struct malloc_type **)mem; in mtrash_ctor()
155 ksp += size / sizeof(struct malloc_type *); in mtrash_ctor()
185 size -= sizeof(struct malloc_type *); in mtrash_dtor()
201 struct malloc_type **ksp; in mtrash_init()
210 ksp = (struct malloc_type **)mem; in mtrash_init()
211 ksp += (size / sizeof(struct malloc_type *)) - 1; in mtrash_init()
H A Dmemguard.h36 struct malloc_type;
44 void *memguard_realloc(void *, unsigned long, struct malloc_type *, int);
46 int memguard_cmp_mtp(struct malloc_type *, unsigned long);
H A Dmemguard.c81 static struct malloc_type *vm_memguard_mtype = NULL;
418 memguard_realloc(void *addr, unsigned long size, struct malloc_type *mtp, in memguard_realloc()
459 memguard_cmp_mtp(struct malloc_type *mtp, unsigned long size) in memguard_cmp_mtp()
/freebsd-12.1/sys/kern/
H A Dkern_malloc.c304 mtp_set_subzone(struct malloc_type *mtp) in mtp_set_subzone()
675 struct malloc_type **mtpp = addr; in free_save_type()
687 sizeof(struct malloc_type *); in free_save_type()
1015 struct malloc_type *mtp; in malloc_init()
1040 struct malloc_type *mtp, *temp; in malloc_uninit()
1090 struct malloc_type *
1093 struct malloc_type *mtp; in malloc_desc2type()
1110 struct malloc_type *mtp; in sysctl_kern_malloc_stats()
1176 struct malloc_type *mtp, **bufmtp; in malloc_type_list()
1212 struct malloc_type *mtp; in DB_SHOW_COMMAND()
[all …]
H A Dsubr_hash.c57 hashinit_flags(int elements, struct malloc_type *type, u_long *hashmask, in hashinit_flags()
86 hashinit(int elements, struct malloc_type *type, u_long *hashmask) in hashinit()
93 hashdestroy(void *vhashtbl, struct malloc_type *type, u_long hashmask) in hashdestroy()
114 phashinit_flags(int elements, struct malloc_type *type, u_long *nentries, int flags) in phashinit_flags()
148 phashinit(int elements, struct malloc_type *type, u_long *nentries) in phashinit()
H A Dsubr_bufring.c42 buf_ring_alloc(int count, struct malloc_type *type, int flags, struct mtx *lock) in buf_ring_alloc()
64 buf_ring_free(struct buf_ring *br, struct malloc_type *type) in buf_ring_free()
H A Dsubr_kobj.c294 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-12.1/sys/libkern/
H A Dstrdup.c43 strdup_flags(const char *string, struct malloc_type *type, int flags) in strdup_flags()
57 strdup(const char *string, struct malloc_type *type) in strdup()
H A Dasprintf.c37 vasprintf(char **buf, struct malloc_type *mtp, const char *format, va_list va) in vasprintf()
67 asprintf(char **buf, struct malloc_type *mtp, const char *format, ...) in asprintf()
H A Dstrndup.c41 strndup(const char *string, size_t maxlen, struct malloc_type *type) in strndup()
/freebsd-12.1/sys/dev/cxgbe/
H A Dt4_mp_ring.h47 struct malloc_type * mt;
61 ring_can_drain_t, struct malloc_type *, int);
/freebsd-12.1/sys/net/
H A Dmp_ring.h52 struct malloc_type * mt;
68 mp_ring_can_drain_t, struct malloc_type *, int);
/freebsd-12.1/sys/dev/firewire/
H A Dfirewirereg.h251 struct malloc_type *malloc;
267 struct fw_xfer *fw_xfer_alloc (struct malloc_type *);
268 struct fw_xfer *fw_xfer_alloc_buf (struct malloc_type *, int, int);
274 int fw_xferlist_add (struct fw_xferlist *, struct malloc_type *, int, int, int,
/freebsd-12.1/sys/nlm/
H A Dnlm.h57 size_t srcsize, struct malloc_type *type);
63 struct malloc_type *type);
/freebsd-12.1/sys/ufs/ffs/
H A Dffs_extern.h47 struct malloc_type;
93 int ffs_sbget(void *, struct fs **, off_t, struct malloc_type *,
/freebsd-12.1/sys/dev/usb/
H A Dusb_mbuf.c65 usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq, in usb_alloc_mbufs()
H A Dusb_mbuf.h89 void *usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq,
H A Dusb_core.h193 typedef struct malloc_type *usb_malloc_type;
/freebsd-12.1/sys/dev/drm/
H A DdrmP.h951 drm_alloc(size_t size, struct malloc_type *area) in drm_alloc()
957 drm_calloc(size_t nmemb, size_t size, struct malloc_type *area) in drm_calloc()
964 struct malloc_type *area) in drm_realloc()
970 drm_free(void *pt, size_t size, struct malloc_type *area) in drm_free()
/freebsd-12.1/sys/netsmb/
H A Dsmb_subr.h111 void *smb_zmalloc(size_t size, struct malloc_type *type, int flags);

12