Sha256: 339c96fba41de3dbe8729ecae277fd8651d30e008c75e7f318a7a75933318d7d

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

/* SPDX-License-Identifier: MIT */

#ifndef __INTERNAL__LIBURING_LIB_H
	#error "This file should be included from src/lib.h (liburing)"
#endif

#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

8 entries across 8 versions & 1 rubygems

Version Path
polyphony-0.94 vendor/liburing/src/arch/generic/lib.h
polyphony-0.93 vendor/liburing/src/arch/generic/lib.h
polyphony-0.92 vendor/liburing/src/arch/generic/lib.h
polyphony-0.91 vendor/liburing/src/arch/generic/lib.h
polyphony-0.90 vendor/liburing/src/arch/generic/lib.h
polyphony-0.89 vendor/liburing/src/arch/generic/lib.h
polyphony-0.87 vendor/liburing/src/arch/generic/lib.h
polyphony-0.86 vendor/liburing/src/arch/generic/lib.h