]>
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); | |
a688242b | 15 | int platform_flush_device(int fd, dev_t device); |
b658de93 DW |
16 | int platform_direct_blockdev(void); |
17 | int platform_align_blockdev(void); | |
18 | unsigned long platform_physmem(void); /* in kilobytes */ | |
19 | void platform_findsizes(char *path, int fd, long long *sz, int *bsz); | |
20 | int platform_nproc(void); | |
21 | ||
22 | void platform_findsizes(char *path, int fd, long long *sz, int *bsz); | |
23 | ||
24 | #endif /* __LIBFROG_PLATFORM_H__ */ |