1 /* ckrm_tsk.h - No. of tasks resource controller for CKRM
3 * Copyright (C) Chandra Seetharaman, IBM Corp. 2003
5 * Provides No. of tasks resource controller for CKRM
7 * Latest version, more details at http://ckrm.sf.net
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
22 #ifndef _LINUX_CKRM_TSK_H
23 #define _LINUX_CKRM_TSK_H
25 #include <linux/ckrm_rc.h>
27 typedef int (*get_ref_t) (void *, int);
28 typedef void (*put_ref_t) (void *);
30 extern int numtasks_get_ref(void *, int);
31 extern void numtasks_put_ref(void *);
32 extern void ckrm_numtasks_register(get_ref_t, put_ref_t);
34 #endif // _LINUX_CKRM_RES_H