summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorUlrich Ölmann <u.oelmann@pengutronix.de>2016-04-29 19:17:59 +0200
committerSteffen Trumtrar <s.trumtrar@pengutronix.de>2020-06-22 08:13:12 +0200
commit7c70e8e153012ca743ffb3b967bdb112fd6ecfd5 (patch)
tree324cc64c1c447646cb22e449728998dd1f4fd49e /include
parentff087598f4cdc426ba883a8720367a4ff3d6b9fe (diff)
downloadbarebox-7c70e8e153012ca743ffb3b967bdb112fd6ecfd5.tar.gz
barebox-7c70e8e153012ca743ffb3b967bdb112fd6ecfd5.tar.xz
bootstrap_read_devfs(): 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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/bootstrap.h b/include/bootstrap.h
index 05734a920c..8b3bb34a03 100644
--- a/include/bootstrap.h
+++ b/include/bootstrap.h
@@ -14,11 +14,11 @@ typedef void (*kernel_entry_func)(int zero, int arch, void *params);
void bootstrap_boot(kernel_entry_func func, bool barebox);
#ifdef CONFIG_BOOTSTRAP_DEVFS
-void* bootstrap_read_devfs(const char *devname, bool use_bb, int offset,
- int default_size, int max_size);
+void* bootstrap_read_devfs(char *devname, bool use_bb, int offset,
+ int default_size, int max_size, size_t *bufsize);
#else
-static inline void* bootstrap_read_devfs(const char *devname, bool use_bb, int offset,
- int default_size, int max_size)
+static inline void* bootstrap_read_devfs(char *devname, bool use_bb, int offset,
+ int default_size, int max_size, size_t *bufsize)
{
return NULL;
}