[go: up one dir, main page]

File: memalign.h

package info (click to toggle)
fio 3.39-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,924 kB
  • sloc: ansic: 80,931; python: 9,252; sh: 5,843; makefile: 813; yacc: 204; lex: 184
file content (13 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef FIO_MEMALIGN_H
#define FIO_MEMALIGN_H

#include <inttypes.h>
#include <stdbool.h>

typedef void* (*malloc_fn)(size_t);
typedef void (*free_fn)(void*);

extern void *__fio_memalign(size_t alignment, size_t size, malloc_fn fn);
extern void __fio_memfree(void *ptr, size_t size, free_fn fn);

#endif