minix/include/minix
Ben Gras bd3cde4571 Move primary cache code to libminixfs.
Add primary cache management feature to libminixfs as mfs and ext2
currently do separately, remove cache code from mfs and ext2, and make
them use the libminixfs interface. This makes all fields of the buf
struct private to libminixfs and FS clients aren't supposed to access
them at all. Only the opaque 'void *data' field (the FS block contents,
used to be called bp) is to be accessed by the FS client.

The main purpose is to implement the interface to the 2ndary vm cache
just once, get rid of some code duplication, and add a little
abstraction to reduce the code inertia of the whole caching business.

Some minor sanity checking and prohibition done by mfs in this code
as removed from the generic primary cache code as a result:
        - checking all inodes are not in use when allocating/resizing
          the cache
        - checking readonly filesystems aren't written to
        - checking the superblock isn't written to on mounted filesystems

The minixfslib code relies on fs_blockstats() in the client filesystem to
return some FS usage information.
2012-10-23 19:48:38 +02:00
..
acpi.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
audio_fw.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
bdev.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
bitmap.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
blockdriver.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
blockdriver_mt.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
btrace.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
callnr.h exec() cleanup, generalization, improvement 2012-06-07 15:15:01 +02:00
chardriver.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
com.h libsys: add sys_safememset() 2012-09-26 02:18:00 +02:00
compiler.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
config.h Replace MACHINE/CHIP macros with compiler macros 2012-08-06 17:49:22 +02:00
const.h SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
cpufeature.h SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
crtso.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
debug.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
devio.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
devman.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
dirent.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
dmap.h VFS - dev_style_asyn() 2012-03-02 15:44:47 +00:00
driver.h retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
drivers.h drivers.h: fix machine includes 2012-08-10 22:12:13 +02:00
drvlib.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
ds.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
endpoint.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
fslib.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
gcov.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
hash.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
hgfs.h Create SFFS library out of HGFS 2012-04-09 18:08:26 +02:00
input.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
ioctl.h Remove ACK EM_WSIZE/EM_PSIZE macro usage 2012-08-06 17:49:22 +02:00
ipc.h SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
ipcconst.h machine/ipcconst.h for arch-specific constants 2012-08-27 19:46:41 -04:00
keymap.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
libminixfs.h Move primary cache code to libminixfs. 2012-10-23 19:48:38 +02:00
limits.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
Makefile various coverity-inspired fixes 2012-07-16 14:00:56 +02:00
minlib.h retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
mthread.h libmthread: add stack traces 2012-04-13 12:54:02 +00:00
netdriver.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
netsock.h LWIP,NETSOCK - lwip uses asynchronous protocol 2012-03-02 15:44:48 +00:00
optset.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
param.h vm, kernel, top: report memory usage of vm, kernel 2012-09-18 23:43:52 +02:00
partition.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
paths.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
portio.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
priv.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
procfs.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
profile.h No more intel/minix segments. 2012-07-15 22:30:15 +02:00
queryparam.h retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
rs.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
safecopies.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
sched.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
sef.h SEF: add sef_cancel() 2012-04-09 16:35:57 +02:00
sffs.h Create SFFS library out of HGFS 2012-04-09 18:08:26 +02:00
sound.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
spin.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
sys_config.h Remove ACK EM_WSIZE/EM_PSIZE macro usage 2012-08-06 17:49:22 +02:00
sysinfo.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
syslib.h libsys: add sys_safememset() 2012-09-26 02:18:00 +02:00
sysutil.h libsys: remove unused stacktrace variant 2012-08-09 00:16:35 +02:00
timers.h retire _PROTOTYPE 2012-03-25 16:17:10 +02:00
tty.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
type.h SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
types.h retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
u64.h get rid of __LONG_LONG_SUPPORTED 2012-03-25 21:58:26 +02:00
usb.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
usb_ch9.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
vbox.h VBOX: add host/guest communication interface 2012-04-09 15:56:20 +02:00
vboxfs.h Add libvboxfs: VirtualBox shared folders library 2012-04-09 19:25:18 +02:00
vboxif.h VBOX: add host/guest communication interface 2012-04-09 15:56:20 +02:00
vboxtype.h VBOX: add host/guest communication interface 2012-04-09 15:56:20 +02:00
vfsif.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
vm.h vm: remove stack handling for signals 2012-08-29 17:31:38 +02:00
vtreefs.h Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00