Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 0b7bcb8 in mainline for kernel/generic/include/adt/cht.h


Ignore:
Timestamp:
2012-08-03T16:08:39Z (9 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master
Children:
5e5cef3
Parents:
fbe17545
Message:

cht: Slightly changed CHT interface. It now allows to specify the maximum desired load of the table before it resizes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/cht.h

    rfbe17545 r0b7bcb8  
    7575        cht_buckets_t *new_b;
    7676
     77        size_t max_load;
    7778        work_t resize_work;
    7879        atomic_t resize_reqs;
     
    8889#define cht_read_unlock()   rcu_read_unlock()
    8990
    90 extern bool cht_create(cht_t *h, size_t init_size, size_t min_size, cht_ops_t *op);
     91extern bool cht_create(cht_t *h, size_t init_size, size_t min_size,
     92        size_t max_load, cht_ops_t *op);
    9193extern void cht_destroy(cht_t *h);
    9294
Note: See TracChangeset for help on using the changeset viewer.