Searched refs:malloc_type (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-9.3-release/sys/vm/
H A Dmemguard.h34 struct malloc_type;
41 void *memguard_realloc(void *, unsigned long, struct malloc_type *, int);
43 int memguard_cmp(struct malloc_type *, unsigned long);
H A Duma_dbg.c124 struct malloc_type **ksp;
128 size -= sizeof(struct malloc_type *);
129 ksp = (struct malloc_type **)mem;
130 ksp += size / sizeof(struct malloc_type *);
155 size -= sizeof(struct malloc_type *);
171 struct malloc_type **ksp;
175 ksp = (struct malloc_type **)mem;
176 ksp += (size / sizeof(struct malloc_type *)) - 1;
H A Dmemguard.c75 static struct malloc_type *vm_memguard_mtype = NULL;
411 memguard_realloc(void *addr, unsigned long size, struct malloc_type *mtp,
433 memguard_cmp(struct malloc_type *mtp, unsigned long size)
/freebsd-9.3-release/sys/sys/
H A Dmalloc.h58 * Two malloc type structures are present: malloc_type, which is used by a
65 * The malloc_type ks_next field is protected by malloc_mtx. Other fields in
66 * malloc_type are static after initialization so unsynchronized.
101 * modules, which will statically allocate struct malloc_type.
103 struct malloc_type { struct
104 struct malloc_type *ks_next; /* Next in global chain. */
132 struct malloc_type type[1] = { \
141 extern struct malloc_type type[1]
169 typedef void malloc_type_list_func_t(struct malloc_type *, void *);
171 void contigfree(void *addr, unsigned long size, struct malloc_type *typ
[all...]
H A Dkobj.h41 struct malloc_type;
197 struct malloc_type *mtype,
209 void kobj_delete(kobj_t obj, struct malloc_type *mtype);
H A Dsystm.h151 struct malloc_type;
168 void hashdestroy(void *, struct malloc_type *, u_long);
169 void *hashinit(int count, struct malloc_type *type, u_long *hashmask);
170 void *hashinit_flags(int count, struct malloc_type *type,
175 void *phashinit(int count, struct malloc_type *type, u_long *nentries);
H A Dbuf_ring.h311 struct buf_ring *buf_ring_alloc(int count, struct malloc_type *type, int flags,
313 void buf_ring_free(struct buf_ring *br, struct malloc_type *type);
H A Dlibkern.h79 struct malloc_type;
116 char *strdup(const char *__restrict, struct malloc_type *);
/freebsd-9.3-release/sys/kern/
H A Dsubr_bufring.c40 buf_ring_alloc(int count, struct malloc_type *type, int flags, struct mtx *lock)
62 buf_ring_free(struct buf_ring *br, struct malloc_type *type)
H A Dsubr_hash.c48 hashinit_flags(int elements, struct malloc_type *type, u_long *hashmask,
83 hashinit(int elements, struct malloc_type *type, u_long *hashmask)
90 hashdestroy(void *vhashtbl, struct malloc_type *type, u_long hashmask)
109 phashinit(int elements, struct malloc_type *type, u_long *nentries)
H A Dkern_malloc.c119 static struct malloc_type *kmemstatistics;
340 malloc_type_zone_allocated(struct malloc_type *mtp, unsigned long size,
370 malloc_type_allocated(struct malloc_type *mtp, unsigned long size)
384 malloc_type_freed(struct malloc_type *mtp, unsigned long size)
417 contigmalloc(unsigned long size, struct malloc_type *type, int flags,
438 contigfree(void *addr, unsigned long size, struct malloc_type *type)
454 malloc(unsigned long size, struct malloc_type *mtp, int flags)
554 free(void *addr, struct malloc_type *mtp)
586 struct malloc_type **mtpp = addr;
591 * Cache a pointer to the malloc_type tha
[all...]
H A Dsubr_kobj.c265 struct malloc_type *mtype,
326 kobj_delete(kobj_t obj, struct malloc_type *mtype)
/freebsd-9.3-release/sys/libkern/
H A Dstrdup.c41 strdup(const char *string, struct malloc_type *type)
/freebsd-9.3-release/sys/nlm/
H A Dnlm.h55 size_t srcsize, struct malloc_type *type);
61 struct malloc_type *type);
/freebsd-9.3-release/gnu/usr.bin/rcs/lib/
H A Dconf.h170 typedef void *malloc_type; /* type returned by malloc() */ typedef
381 malloc_type malloc P((size_t));
382 malloc_type realloc P((malloc_type,size_t));
H A Drcsbase.h703 malloc_type fremember P((malloc_type));
704 malloc_type ftestalloc P((size_t));
705 malloc_type testalloc P((size_t));
706 malloc_type testrealloc P((malloc_type,size_t));
710 extern malloc_type lintalloc;
713 # define trealloc(T,p,n) (lintalloc = testrealloc((malloc_type)0, sizeof(T)*(n)), p)
718 # define trealloc(T,p,n) ((T*) testrealloc((malloc_type)(p), sizeof(T)*(n)))
719 # define tfree(p) free((malloc_type)(
[all...]
H A Drcsutil.c224 malloc_type lintalloc;
234 malloc_type alloc;
240 static malloc_type okalloc P((malloc_type));
241 static malloc_type
243 malloc_type p;
250 malloc_type
258 malloc_type
260 malloc_type ptr;
267 malloc_type
[all...]
/freebsd-9.3-release/sys/dev/usb/
H A Dusb_mbuf.h87 void *usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq,
H A Dusb_mbuf.c59 usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq,
H A Dusb_core.h181 typedef struct malloc_type *usb_malloc_type;
H A Dusb_request.h47 struct malloc_type *mtype, uint8_t conf_index);
/freebsd-9.3-release/sys/dev/firewire/
H A Dfirewirereg.h259 struct malloc_type *malloc;
275 struct fw_xfer *fw_xfer_alloc (struct malloc_type *);
276 struct fw_xfer *fw_xfer_alloc_buf (struct malloc_type *, int, int);
282 int fw_xferlist_add (struct fw_xferlist *, struct malloc_type *, int, int, int,
/freebsd-9.3-release/sys/netsmb/
H A Dsmb_subr.h109 void *smb_zmalloc(size_t size, struct malloc_type *type, int flags);
/freebsd-9.3-release/sys/cddl/dev/dtmalloc/
H A Ddtmalloc.c85 p = "struct malloc_type *";
111 dtmalloc_type_cb(struct malloc_type *mtp, void *arg __unused)
118 * malloc_type descriptions are allowed to contain whitespace, but
/freebsd-9.3-release/sys/dev/drm/
H A DdrmP.h956 drm_alloc(size_t size, struct malloc_type *area)
962 drm_calloc(size_t nmemb, size_t size, struct malloc_type *area)
969 struct malloc_type *area)
975 drm_free(void *pt, size_t size, struct malloc_type *area)

Completed in 228 milliseconds

12