search for: map_zero

Displaying 3 results from an estimated 3 matches for "map_zero".

Did you mean: mmap_zero
2008 Jan 18
0
[PATCH] minios: support COW for a zero page
...i Jan 18 15:55:13 2008 +0000 +++ b/extras/mini-os/include/ia64/arch_mm.h Fri Jan 18 16:02:32 2008 +0000 @@ -37,5 +37,7 @@ #define STACK_SIZE (PAGE_SIZE * (1 << STACK_SIZE_PAGE_ORDER)) #define map_frames(f, n) map_frames_ex(f, n, 1, 0, 1, DOMID_SELF, 0, 0) +/* TODO */ +#define map_zero(n, a) map_frames_ex(NULL, n, 0, 0, a, DOMID_SELF, 0, 0) #endif /* __ARCH_MM_H__ */ diff -r 27ad7ed41be2 extras/mini-os/include/types.h --- a/extras/mini-os/include/types.h Fri Jan 18 15:55:13 2008 +0000 +++ b/extras/mini-os/include/types.h Fri Jan 18 16:02:32 2008 +0000 @@ -57,6 +57,13 @@ typede...
2018 Jul 31
0
[PATCH nbdkit 3/4] Add map filter.
...offs, uint32_t flags, + int *err) +{ + abort (); +} + +/* Trim data. */ +static int +map_trim (struct nbdkit_next_ops *next_ops, void *nxdata, + void *handle, uint32_t count, uint64_t offs, uint32_t flags, + int *err) +{ + abort (); +} + +/* Zero data. */ +static int +map_zero (struct nbdkit_next_ops *next_ops, void *nxdata, + void *handle, uint32_t count, uint64_t offs, uint32_t flags, + int *err) +{ + abort (); +} + +static struct nbdkit_filter filter = { + .name = "map", + .longname = "nbdkit map filter",...
2018 Jul 31
7
[PATCH nbdkit 0/4] Add truncate and map filters.
This patch series proposes two new filters. * truncate: This can truncate, extend, round up or round down the size of a plugin/device. A typical usage is to fix the qemu problem that it can only handle devices which are a multiple of 512-bytes: nbdkit --filter=truncate random size=500 round-up=512 This will serve a virtual device with size 512 bytes. Reading from the last 12 bytes will