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


Ignore:
Timestamp:
2006-10-22T17:42:49Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2191541
Parents:
78595d6
Message:

Indentation changes and coding style fixes in slab.c and slab.h.

File:
1 edited

Legend:

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

    r78595d6 rf3272e98  
    6969        count_t size;  /**< Number of slots in magazine */
    7070        void *objs[0]; /**< Slots in magazine */
    71 }slab_magazine_t;
     71} slab_magazine_t;
    7272
    7373typedef struct {
     
    7575        slab_magazine_t *last;
    7676        SPINLOCK_DECLARE(lock);
    77 }slab_mag_cache_t;
     77} slab_mag_cache_t;
    7878
    7979
     
    8383        link_t link;
    8484        /* Configuration */
    85         size_t size;      /**< Size of slab position - align_up(sizeof(obj)) */
     85        size_t size;            /**< Size of slab position - align_up(sizeof(obj)) */
    8686        int (*constructor)(void *obj, int kmflag);
    8787        int (*destructor)(void *obj);
    88         int flags;        /**< Flags changing behaviour of cache */
     88        int flags;              /**< Flags changing behaviour of cache */
    8989
    9090        /* Computed values */
    91         uint8_t order;        /**< Order of frames to be allocated */
    92         int objects;      /**< Number of objects that fit in */
     91        uint8_t order;          /**< Order of frames to be allocated */
     92        int objects;            /**< Number of objects that fit in */
    9393
    9494        /* Statistics */
     
    9999
    100100        /* Slabs */
    101         link_t full_slabs;     /**< List of full slabs */
    102         link_t partial_slabs;  /**< List of partial slabs */
     101        link_t full_slabs;      /**< List of full slabs */
     102        link_t partial_slabs;   /**< List of partial slabs */
    103103        SPINLOCK_DECLARE(slablock);
    104104        /* Magazines  */
    105         link_t magazines;      /**< List o full magazines */
     105        link_t magazines        /**< List o full magazines */
    106106        SPINLOCK_DECLARE(maglock);
    107107
    108108        /** CPU cache */
    109109        slab_mag_cache_t *mag_cache;
    110 }slab_cache_t;
     110} slab_cache_t;
    111111
    112112extern slab_cache_t * slab_cache_create(char *name,
Note: See TracChangeset for help on using the changeset viewer.