commit 01759746eed33c11916492ad218f801b606d5ce5
parent 398a522e7053b366ea3d5f7b24373c69cb5635b1
Author: Roberto Vargas <roberto.vargas@arm.com>
Date: Thu, 7 Feb 2019 01:52:56 +0000
[rootfs] Add rootwrite()
Change-Id: I6ee037ab9c8a3dcede0bf21ea99f00725f57b0e6
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/devroot.c b/drivers/devroot.c
@@ -40,6 +40,12 @@ rootread(Chan *c, void *buf, int n)
return -1;
}
+static int
+rootwrite(Chan *c, void *buf, int n)
+{
+ return -1;
+}
+
const Dev rootdevtab = {
.id = '/',
.name = "root",
@@ -47,4 +53,5 @@ const Dev rootdevtab = {
.attach = rootattach,
.walk = rootwalk,
.read = rootread,
+ .write = rootwrite,
};