28.08.2015 Views

The Design and Implementation of the Anykernel and Rump Kernels

1F3KDce

1F3KDce

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A–22<br />

RUMP_ETFS(3) NetBSD Library Functions Manual RUMP_ETFS(3)<br />

This is useful when mapping disk images where only one partition is<br />

relevant to <strong>the</strong> application. If size is given <strong>the</strong> special value<br />

RUMP_ETFS_SIZE_ENDOFF, <strong>the</strong> underlying file is mapped from begin to<br />

<strong>the</strong> end <strong>of</strong> <strong>the</strong> file.<br />

rump_pub_etfs_remove(key)<br />

Remove etfs mapping for key. This routine may be called only if<br />

<strong>the</strong> file related to <strong>the</strong> mapping is not in use.<br />

EXAMPLES<br />

Map a host image file to a mountable /dev/harddisk path using window <strong>of</strong>fsets<br />

from <strong>the</strong> disklabel.<br />

rump_pub_etfs_register_withsize("/dev/harddisk", "disk.img",<br />

RUMP_ETFS_BLK,<br />

pp->p_<strong>of</strong>fset p_size

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!