diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2016-04-29 19:36:21 +0200 |
---|---|---|
committer | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2020-06-22 08:13:13 +0200 |
commit | c98507f40d39633e345230caa00f78c9065da845 (patch) | |
tree | 97a79cbc2ceb27bfb3ee327a2c57b4a1296c042c /include | |
parent | 7c70e8e153012ca743ffb3b967bdb112fd6ecfd5 (diff) | |
download | barebox-c98507f40d39633e345230caa00f78c9065da845.tar.gz barebox-c98507f40d39633e345230caa00f78c9065da845.tar.xz |
bootstrap_read_disk(): optionally inform the caller of the buffer size
The size of the buffer allocated in the function is needed if it shall be
inspected more closely later. Therefore optionally return it via a new pointer
argument.
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/bootstrap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bootstrap.h b/include/bootstrap.h index 8b3bb34a03..3e006d3cc9 100644 --- a/include/bootstrap.h +++ b/include/bootstrap.h @@ -25,9 +25,9 @@ static inline void* bootstrap_read_devfs(char *devname, bool use_bb, int offset, #endif #ifdef CONFIG_BOOTSTRAP_DISK -void* bootstrap_read_disk(const char *devname, const char *fstype); +void* bootstrap_read_disk(const char *devname, char *fstype, size_t *bufsize); #else -static inline void* bootstrap_read_disk(const char *devname, const char *fstype) +static inline void* bootstrap_read_disk(const char *devname, char *fstype, size_t *bufsize) { return NULL; } |