28.08.2015 Views

The Design and Implementation of the Anykernel and Rump Kernels

1F3KDce

1F3KDce

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A–21<br />

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

ing directory <strong>and</strong> can be ei<strong>the</strong>r absolute or relative.<br />

<strong>The</strong> ftype parameter specifies how etfs file will be presented <strong>and</strong> does<br />

not have to match <strong>the</strong> host type, although some limitations apply. Possible<br />

values are:<br />

RUMP_ETFS_REG<br />

regular file.<br />

RUMP_ETFS_BLK block device. This is <strong>of</strong>ten used when mapping<br />

file system images.<br />

RUMP_ETFS_CHR<br />

character device.<br />

RUMP_ETFS_DIR directory. This option is valid only when<br />

hostpath is a directory. <strong>The</strong> immediate children<br />

<strong>of</strong> <strong>the</strong> host directory will be accessible<br />

inside a rump kernel.<br />

RUMP_ETFS_DIR_SUBDIRS directory. This option is valid only when<br />

hostpath is a directory. This option recursively<br />

applies to all subdirectories, <strong>and</strong><br />

allows a rump kernel to access an entire directory<br />

tree.<br />

<strong>The</strong> interfaces are:<br />

rump_pub_etfs_register(key, hostpath, ftype)<br />

Map key to a file <strong>of</strong> type ftype with <strong>the</strong> contents <strong>of</strong> hostpath.<br />

rump_pub_etfs_register_withsize(key, hostpath, ftype, begin, size)<br />

Like <strong>the</strong> above, but map only [begin, begin+size] from hostpath.<br />

NetBSD 5.99.48 February 3, 2011 NetBSD 5.99.48

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

Saved successfully!

Ooh no, something went wrong!