/* * Copyright 2011 Institute of Communication and Computer Systems (ICCS) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ /** * \file search_on_fixed.h * \author Ioannis Koutras (joko@microlab.ntua.gr) * \date September, 2011 * * \brief Exact-fit search on fixed lists */ #ifndef SEARCH_ON_FIXED_H #define SEARCH_ON_FIXED_H #include /** * Perform an exact-fit search on fixed lists for a block of a certain size * * \param heap The heap whose fixed lists should be accessed. * \param requested_size The desired size of the block. * * \return The pointer of the data part of the matched memory block. * \retval NULL No block was found. */ void * search_on_fixed(heap_t * heap, size_t requested_size); #endif /* SEARCH_ON_FIXED_H */