Changeset 1a48bcd in mainline for kernel/generic/include/mm/slab.h


Ignore:
Timestamp:
2008-06-22T14:34:43Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
599d6f5
Parents:
1e9d0e3
Message:

cstyle for slab.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/slab.h

    r1e9d0e3 r1a48bcd  
    5454
    5555/** Maximum wasted space we allow for cache */
    56 #define SLAB_MAX_BADNESS(cache)   (((unsigned int) PAGE_SIZE << (cache)->order) >> 2)
     56#define SLAB_MAX_BADNESS(cache) \
     57        (((unsigned int) PAGE_SIZE << (cache)->order) >> 2)
    5758
    5859/* slab_reclaim constants */
     
    100101
    101102        /* Computed values */
    102         uint8_t order;                          /**< Order of frames to be allocated */
     103        uint8_t order;                  /**< Order of frames to be allocated */
    103104        unsigned int objects;           /**< Number of objects that fit in */
    104105
     
    122123} slab_cache_t;
    123124
    124 extern slab_cache_t * slab_cache_create(char *name, size_t size, size_t align,
    125     int (*constructor)(void *obj, int kmflag), int (*destructor)(void *obj),
    126     int flags);
    127 extern void slab_cache_destroy(slab_cache_t *cache);
     125extern slab_cache_t *slab_cache_create(char *, size_t, size_t,
     126    int (*)(void *, int), int (*)(void *), int);
     127extern void slab_cache_destroy(slab_cache_t *);
    128128
    129 extern void * slab_alloc(slab_cache_t *cache, int flags);
    130 extern void slab_free(slab_cache_t *cache, void *obj);
    131 extern count_t slab_reclaim(int flags);
     129extern void * slab_alloc(slab_cache_t *, int);
     130extern void slab_free(slab_cache_t *, void *);
     131extern count_t slab_reclaim(int);
    132132
    133133/* slab subsytem initialization */
     
    139139
    140140/* malloc support */
    141 extern void * malloc(unsigned int size, int flags);
    142 extern void * realloc(void *ptr, unsigned int size, int flags);
    143 extern void free(void *ptr);
     141extern void *malloc(unsigned int, int);
     142extern void *realloc(void *, unsigned int, int);
     143extern void free(void *);
    144144#endif
    145145
Note: See TracChangeset for help on using the changeset viewer.