search_on_fixed.h 649 B

123456789101112131415161718192021222324252627
  1. /**
  2. * \file search_on_fixed.h
  3. * \author Ioannis Koutras (joko@microlab.ntua.gr)
  4. * \date September, 2011
  5. *
  6. * \brief Exact-fit search on fixed lists
  7. */
  8. #ifndef SEARCH_ON_FIXED_H
  9. #define SEARCH_ON_FIXED_H
  10. #include <dmmlib/heap.h>
  11. /**
  12. * Perform an exact-fit search on fixed lists for a block of a certain size
  13. *
  14. * \param heap The heap whose fixed lists should be accessed.
  15. * \param requested_size The desired size of the block.
  16. *
  17. * \return The pointer of the data part of the matched memory block.
  18. * \retval NULL No block was found.
  19. */
  20. void * search_on_fixed(heap_t * heap, size_t requested_size);
  21. #endif /* SEARCH_ON_FIXED_H */