env: Add extended versions of env_vmalloc functions
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
b7e59ee04a
commit
952767905a
10
env/posix/ocf_env.h
vendored
10
env/posix/ocf_env.h
vendored
@ -124,6 +124,16 @@ static inline void env_free(const void *ptr)
|
||||
free((void *)ptr);
|
||||
}
|
||||
|
||||
static inline void *env_vmalloc_flags(size_t size, int flags)
|
||||
{
|
||||
return malloc(size);
|
||||
}
|
||||
|
||||
static inline void *env_vzalloc_flags(size_t size, int flags)
|
||||
{
|
||||
return env_zalloc(size, 0);
|
||||
}
|
||||
|
||||
static inline void *env_vmalloc(size_t size)
|
||||
{
|
||||
return malloc(size);
|
||||
|
Loading…
Reference in New Issue
Block a user