]> Zhao Yanbai Git Server - minix.git/commit
VFS: rework device code 77/977/2
authorDavid van Moolenbroek <david@minix3.org>
Tue, 10 Sep 2013 10:19:08 +0000 (12:19 +0200)
committerLionel Sambuc <lionel@minix3.org>
Sat, 1 Mar 2014 08:04:52 +0000 (09:04 +0100)
commita4277506a2e43ca1e05c947ae9d2447e4ee079ff
tree715f9dfcd9b4d3acd9e43eb55d36d1cd1aedcc35
parentf6915d3dee9b2cbd89581d8f048504ded20eff8f
VFS: rework device code

- block the calling thread on character device close;
- fully separate block and character open/close routines;
- reuse generic open/close code for the cloning case;
- zero all messages to drivers before filling them;
- use appropriate types for major/minor device numbers.

Change-Id: Ia90e6fe5688f212f835c5ee1bfca831cb249cf51
servers/vfs/device.c
servers/vfs/filedes.c
servers/vfs/misc.c
servers/vfs/open.c
servers/vfs/proto.h