]>
Commit | Line | Data |
---|---|---|
b658de93 DW |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | /* | |
3 | * Copyright (c) 2000-2006 Silicon Graphics, Inc. | |
4 | * All Rights Reserved. | |
5 | */ | |
6 | ||
7 | #ifndef __LIBFROG_PLATFORM_H__ | |
8 | #define __LIBFROG_PLATFORM_H__ | |
9 | ||
10 | int platform_check_ismounted(char *path, char *block, struct stat *sptr, | |
11 | int verbose); | |
12 | int platform_check_iswritable(char *path, char *block, struct stat *sptr); | |
13 | int platform_set_blocksize(int fd, char *path, dev_t device, int bsz, | |
14 | int fatal); | |
15 | void platform_flush_device(int fd, dev_t device); | |
16 | char *platform_findrawpath(char *path); | |
17 | char *platform_findblockpath(char *path); | |
18 | int platform_direct_blockdev(void); | |
19 | int platform_align_blockdev(void); | |
20 | unsigned long platform_physmem(void); /* in kilobytes */ | |
21 | void platform_findsizes(char *path, int fd, long long *sz, int *bsz); | |
22 | int platform_nproc(void); | |
23 | ||
24 | void platform_findsizes(char *path, int fd, long long *sz, int *bsz); | |
25 | ||
26 | #endif /* __LIBFROG_PLATFORM_H__ */ |