blob: 50dbad2245eaf4c18911c49d4314338005828e3c [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_MEMPOOL_H
20#define _LINUX_MEMPOOL_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/wait.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022struct kmem_cache;
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024typedef void * (mempool_alloc_t)(gfp_t gfp_mask, void *pool_data);
25typedef void (mempool_free_t)(void *element, void *pool_data);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026typedef struct mempool_s {
27 spinlock_t lock;
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 int min_nr;
30 int curr_nr;
31 void **elements;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032 void *pool_data;
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 mempool_alloc_t *alloc;
35 mempool_free_t *free;
36 wait_queue_head_t wait;
37} mempool_t;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#endif