1 #ifndef FIO_OS_FREEBSD_H
2 #define FIO_OS_FREEBSD_H
5 #define FIO_HAVE_POSIXAIO
6 #undef FIO_HAVE_FADVISE
7 #undef FIO_HAVE_CPU_AFFINITY
8 #undef FIO_HAVE_DISK_UTIL
11 #define OS_MAP_ANON (MAP_ANON)
13 typedef unsigned long os_cpu_mask_t;
18 static inline int blockdev_size(int fd, unsigned long long *bytes)
23 static inline unsigned long long os_phys_mem(void)
25 int mib[2] = { CTL_HW, HW_PHYSMEM };
26 unsigned long long mem;
27 size_t len = sizeof(mem);
29 sysctl(mib, 2, &mem, &len, NULL, 0);