From: Alan Cox Date: Sun, 4 Jan 2015 17:34:40 +0000 (+0000) Subject: devio: note FIXME on device close X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=af5c5f1f8aaf0649a62835d6f3635bbfef0895a9;p=FUZIX.git devio: note FIXME on device close --- diff --git a/Kernel/devio.c b/Kernel/devio.c index c1ca6ee0..ce8d53da 100644 --- a/Kernel/devio.c +++ b/Kernel/devio.c @@ -257,6 +257,9 @@ int d_open(uint16_t dev, uint8_t flag) } +/* FIXME: on the last close we ought to flush/invalidate any bufs + for this device so we can support swapping between media properly + (right now the cache is so small it happens to work...) */ int d_close(uint16_t dev) { if (!validdev(dev))