]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/malloc.h
xnu-1699.22.73.tar.gz
[apple/xnu.git] / bsd / sys / malloc.h
index ea59c270b68d8aea946524697fa6d54add0ebbe2..4e8688735f8611a3243be526aa56c5bbf0efc5e3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2010 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
 #define M_IP6NDP       86      /* IPv6 Neighbour Discovery*/
 #define M_IP6OPT       87      /* IPv6 options management */
 #define M_IP6MISC      88      /* IPv6 misc. memory */
-#define M_TSEGQ                89      /* TCP segment queue entry */
+#define M_TSEGQ                89      /* TCP segment queue entry, unused */
 #define M_IGMP         90
 #define M_JNL_JNL   91  /* Journaling: "struct journal" */
 #define M_JNL_TR    92  /* Journaling: "struct transaction" */ 
 #define M_FILEGLOB     99      /* fileglobal */
 #define M_KAUTH                100     /* kauth subsystem */
 #define M_DUMMYNET     101     /* dummynet */
+#ifndef __LP64__
 #define M_UNSAFEFS     102     /* storage for vnode lock state for unsafe FS */
+#endif /* __LP64__ */
 #define M_MACPIPELABEL 103     /* MAC pipe labels */
 #define M_MACTEMP      104     /* MAC framework */
 #define M_SBUF         105     /* string buffers */
 #define M_EXTATTR      106     /* extended attribute */
 #define M_LCTX         107     /* process login context */
+/* M_TRAFFIC_MGT 108 */
+#if HFS_COMPRESSION
+#define M_DECMPFS_CNODE        109     /* decmpfs cnode structures */
+#endif /* HFS_COMPRESSION */
+#define M_INMFILTER    110     /* IPv4 multicast PCB-layer source filter */
+#define M_IPMSOURCE    111     /* IPv4 multicast IGMP-layer source filter */
+#define        M_IN6MFILTER    112     /* IPv6 multicast PCB-layer source filter */
+#define        M_IP6MOPTS      113     /* IPv6 multicast options */
+#define        M_IP6MSOURCE    114     /* IPv6 multicast MLD-layer source filter */
 
-#define        M_LAST          109     /* Must be last type + 1 */
+#define        M_LAST          115     /* Must be last type + 1 */
 
 #else /* BSD_KERNEL_PRIVATE */
 
@@ -247,6 +258,9 @@ extern struct kmemstats kmemstats[];
 #define FREE(addr, type) \
        _FREE((void *)addr, type)
 
+#define        REALLOC(space, cast, addr, size, type, flags) \
+       (space) = (cast)_REALLOC(addr, size, type, flags)
+
 #define MALLOC_ZONE(space, cast, size, type, flags) \
        (space) = (cast)_MALLOC_ZONE(size, type, flags)
 
@@ -262,6 +276,12 @@ extern void        _FREE(
                        void            *addr,
                        int             type);
 
+extern void    *_REALLOC(
+                       void            *addr,
+                       size_t          size,
+                       int             type,
+                       int             flags);
+
 extern void    *_MALLOC_ZONE(
                        size_t          size,
                        int             type,