V4L/DVB (6715): ivtv: Remove unnecessary register update
[linux-2.6/verdex.git] / include / linux / slob_def.h
blob59a3fa476ab9f7afe3f407c72b616c23143324a7
1 #ifndef __LINUX_SLOB_DEF_H
2 #define __LINUX_SLOB_DEF_H
4 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
6 static inline void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)
8 return kmem_cache_alloc_node(cachep, flags, -1);
11 void *__kmalloc_node(size_t size, gfp_t flags, int node);
13 static inline void *kmalloc_node(size_t size, gfp_t flags, int node)
15 return __kmalloc_node(size, flags, node);
18 /**
19 * kmalloc - allocate memory
20 * @size: how many bytes of memory are required.
21 * @flags: the type of memory to allocate (see kcalloc).
23 * kmalloc is the normal method of allocating memory
24 * in the kernel.
26 static inline void *kmalloc(size_t size, gfp_t flags)
28 return __kmalloc_node(size, flags, -1);
31 static inline void *__kmalloc(size_t size, gfp_t flags)
33 return kmalloc(size, flags);
36 #endif /* __LINUX_SLOB_DEF_H */