Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/slab.c

    r8df5f20 rb60615b  
    158158 *
    159159 */
    160 _NO_TRACE static slab_t *slab_space_alloc(slab_cache_t *cache,
     160NO_TRACE static slab_t *slab_space_alloc(slab_cache_t *cache,
    161161    unsigned int flags)
    162162{
     
    206206 *
    207207 */
    208 _NO_TRACE static size_t slab_space_free(slab_cache_t *cache, slab_t *slab)
     208NO_TRACE static size_t slab_space_free(slab_cache_t *cache, slab_t *slab)
    209209{
    210210        frame_free(KA2PA(slab->start), slab->cache->frames);
     
    218218
    219219/** Map object to slab structure */
    220 _NO_TRACE static slab_t *obj2slab(void *obj)
     220NO_TRACE static slab_t *obj2slab(void *obj)
    221221{
    222222        return (slab_t *) frame_get_parent(ADDR2PFN(KA2PA(obj)), 0);
     
    234234 *
    235235 */
    236 _NO_TRACE static size_t slab_obj_destroy(slab_cache_t *cache, void *obj,
     236NO_TRACE static size_t slab_obj_destroy(slab_cache_t *cache, void *obj,
    237237    slab_t *slab)
    238238{
     
    276276 *
    277277 */
    278 _NO_TRACE static void *slab_obj_create(slab_cache_t *cache, unsigned int flags)
     278NO_TRACE static void *slab_obj_create(slab_cache_t *cache, unsigned int flags)
    279279{
    280280        irq_spinlock_lock(&cache->slablock, true);
     
    332332 *
    333333 */
    334 _NO_TRACE static slab_magazine_t *get_mag_from_cache(slab_cache_t *cache,
     334NO_TRACE static slab_magazine_t *get_mag_from_cache(slab_cache_t *cache,
    335335    bool first)
    336336{
     
    357357 *
    358358 */
    359 _NO_TRACE static void put_mag_to_cache(slab_cache_t *cache,
     359NO_TRACE static void put_mag_to_cache(slab_cache_t *cache,
    360360    slab_magazine_t *mag)
    361361{
     
    373373 *
    374374 */
    375 _NO_TRACE static size_t magazine_destroy(slab_cache_t *cache,
     375NO_TRACE static size_t magazine_destroy(slab_cache_t *cache,
    376376    slab_magazine_t *mag)
    377377{
     
    392392 *
    393393 */
    394 _NO_TRACE static slab_magazine_t *get_full_current_mag(slab_cache_t *cache)
     394NO_TRACE static slab_magazine_t *get_full_current_mag(slab_cache_t *cache)
    395395{
    396396        slab_magazine_t *cmag = cache->mag_cache[CPU->id].current;
     
    429429 *
    430430 */
    431 _NO_TRACE static void *magazine_obj_get(slab_cache_t *cache)
     431NO_TRACE static void *magazine_obj_get(slab_cache_t *cache)
    432432{
    433433        if (!CPU)
     
    459459 *
    460460 */
    461 _NO_TRACE static slab_magazine_t *make_empty_current_mag(slab_cache_t *cache)
     461NO_TRACE static slab_magazine_t *make_empty_current_mag(slab_cache_t *cache)
    462462{
    463463        slab_magazine_t *cmag = cache->mag_cache[CPU->id].current;
     
    509509 *
    510510 */
    511 _NO_TRACE static int magazine_obj_put(slab_cache_t *cache, void *obj)
     511NO_TRACE static int magazine_obj_put(slab_cache_t *cache, void *obj)
    512512{
    513513        if (!CPU)
     
    538538 *
    539539 */
    540 _NO_TRACE static size_t comp_objects(slab_cache_t *cache)
     540NO_TRACE static size_t comp_objects(slab_cache_t *cache)
    541541{
    542542        if (cache->flags & SLAB_CACHE_SLINSIDE)
     
    550550 *
    551551 */
    552 _NO_TRACE static size_t badness(slab_cache_t *cache)
     552NO_TRACE static size_t badness(slab_cache_t *cache)
    553553{
    554554        size_t objects = comp_objects(cache);
     
    564564 *
    565565 */
    566 _NO_TRACE static bool make_magcache(slab_cache_t *cache)
     566NO_TRACE static bool make_magcache(slab_cache_t *cache)
    567567{
    568568        assert(_slab_initialized >= 2);
     
    585585 *
    586586 */
    587 _NO_TRACE static void _slab_cache_create(slab_cache_t *cache, const char *name,
     587NO_TRACE static void _slab_cache_create(slab_cache_t *cache, const char *name,
    588588    size_t size, size_t align, errno_t (*constructor)(void *obj,
    589589    unsigned int kmflag), size_t (*destructor)(void *obj), unsigned int flags)
     
    660660 *
    661661 */
    662 _NO_TRACE static size_t _slab_reclaim(slab_cache_t *cache, unsigned int flags)
     662NO_TRACE static size_t _slab_reclaim(slab_cache_t *cache, unsigned int flags)
    663663{
    664664        if (cache->flags & SLAB_CACHE_NOMAGAZINE)
     
    707707 *
    708708 */
    709 _NO_TRACE static void _slab_free(slab_cache_t *cache, void *obj, slab_t *slab)
     709NO_TRACE static void _slab_free(slab_cache_t *cache, void *obj, slab_t *slab)
    710710{
    711711        if (!obj)
Note: See TracChangeset for help on using the changeset viewer.