X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-linux.h;h=81d04027efb9491fde44c783922dc368734d5042;hb=7b5cb700485518c2e7f2f49548319c89ba907195;hp=869a25d8ee5d86c684762d91c4f7a4496f2b5d7f;hpb=ba9c7219eefcc04e84a4fb4970f4b5caeaf48aa6;p=fio.git diff --git a/os/os-linux.h b/os/os-linux.h index 869a25d8..81d04027 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -61,6 +61,8 @@ typedef struct drand48_data os_random_state_t; #define fio_cpu_clear(mask, cpu) (void) CPU_CLR((cpu), (mask)) #define fio_cpu_set(mask, cpu) (void) CPU_SET((cpu), (mask)) +#define fio_cpu_isset(mask, cpu) CPU_ISSET((cpu), (mask)) +#define fio_cpu_count(mask) CPU_COUNT((mask)) static inline int fio_cpuset_init(os_cpu_mask_t *mask) { @@ -196,6 +198,12 @@ static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev) #define FIO_O_NOATIME 0 #endif +#ifdef O_ATOMIC +#define OS_O_ATOMIC O_ATOMIC +#else +#define OS_O_ATOMIC 040000000 +#endif + #ifdef MADV_REMOVE #define FIO_MADV_FREE MADV_REMOVE #endif