Sha256: 32c499025abd801fa9f936f9b758e7419ac56ed12fc58342924a735a181722ad

Contents?: true

Size: 316 Bytes

Versions: 29

Compression:

Stored size: 316 Bytes

Contents

/* SPDX-License-Identifier: MIT */

#ifndef LIBURING_ARCH_GENERIC_LIB_H
#define LIBURING_ARCH_GENERIC_LIB_H

static inline long get_page_size(void)
{
	long page_size;

	page_size = sysconf(_SC_PAGESIZE);
	if (page_size < 0)
		page_size = 4096;

	return page_size;
}

#endif /* #ifndef LIBURING_ARCH_GENERIC_LIB_H */

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
uringmachine-0.5 vendor/liburing/src/arch/generic/lib.h
uringmachine-0.4 vendor/liburing/src/arch/generic/lib.h
uringmachine-0.3 vendor/liburing/src/arch/generic/lib.h
uringmachine-0.2 vendor/liburing/src/arch/generic/lib.h
uringmachine-0.1 vendor/liburing/src/arch/generic/lib.h
iou-0.2 vendor/liburing/src/arch/generic/lib.h
iou-0.1 vendor/liburing/src/arch/generic/lib.h
polyphony-1.6 vendor/liburing/src/arch/generic/lib.h
polyphony-1.5 vendor/liburing/src/arch/generic/lib.h
polyphony-1.4 vendor/liburing/src/arch/generic/lib.h
polyphony-1.3 vendor/liburing/src/arch/generic/lib.h
polyphony-1.2.1 vendor/liburing/src/arch/generic/lib.h
polyphony-1.2 vendor/liburing/src/arch/generic/lib.h
polyphony-1.1.1 vendor/liburing/src/arch/generic/lib.h
polyphony-1.1 vendor/liburing/src/arch/generic/lib.h
polyphony-1.0.2 vendor/liburing/src/arch/generic/lib.h
polyphony-1.0.1 vendor/liburing/src/arch/generic/lib.h
polyphony-1.0 vendor/liburing/src/arch/generic/lib.h
polyphony-0.99.6 vendor/liburing/src/arch/generic/lib.h
polyphony-0.99.5 vendor/liburing/src/arch/generic/lib.h