~ubuntu-branches/ubuntu/precise/linux-ti-omap/precise

« back to all changes in this revision

Viewing changes to ubuntu/compcache/xvmalloc.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bader, Amit Kucheria
  • Date: 2010-03-23 18:05:12 UTC
  • Revision ID: james.westby@ubuntu.com-20100323180512-iavj906ocnphdubp
Tags: 2.6.33-500.3
[ Amit Kucheria ]

* [Config] Fix the debug package name to end in -dbgsym
* SAUCE: Add the ubuntu/ drivers to omap
* SAUCE: Re-export the symbols for aufs
* [Config] Enable AUFS and COMPCACHE

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * xvmalloc.h
 
3
 *
 
4
 * Copyright (C) 2008, 2009  Nitin Gupta
 
5
 *
 
6
 * This code is released using a dual license strategy: GPL/LGPL
 
7
 * You can choose the licence that better fits your requirements.
 
8
 *
 
9
 * Released under the terms of GNU General Public License Version 2.0
 
10
 * Released under the terms of GNU Lesser General Public License Version 2.1
 
11
 */
 
12
 
 
13
#ifndef _XVMALLOC_H_
 
14
#define _XVMALLOC_H_
 
15
 
 
16
#include <linux/types.h>
 
17
 
 
18
struct xv_pool;
 
19
 
 
20
struct xv_pool *xv_create_pool(void);
 
21
void xv_destroy_pool(struct xv_pool *pool);
 
22
 
 
23
int xv_malloc(struct xv_pool *pool, u32 size, u32 *pagenum, u32 *offset,
 
24
                                                        gfp_t flags);
 
25
void xv_free(struct xv_pool *pool, u32 pagenum, u32 offset);
 
26
 
 
27
u32 xv_get_object_size(void *obj);
 
28
u64 xv_get_total_size_bytes(struct xv_pool *pool);
 
29
 
 
30
#endif