mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
Bring common functions to a new file while keeping code as much same as possible. These functions can be used in the new tests. This helps in avoiding code duplication. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Muhammad Usama Anjum <[email protected]> Acked-by: David Hildenbrand <[email protected]> Cc: Gabriel Krisman Bertazi <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
10 lines
273 B
C
10 lines
273 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
uint64_t pagemap_get_entry(int fd, char *start);
|
|
bool pagemap_is_softdirty(int fd, char *start);
|
|
void clear_softdirty(void);
|
|
uint64_t read_pmd_pagesize(void);
|
|
uint64_t check_huge(void *addr);
|