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–34<br />

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

while ‘‘all:noinet’’ specifies that all protocol families<br />

except PF_INET should be hijacked.<br />

‘‘vfs’’<br />

<strong>The</strong> specifier value contains a colon-separated list<br />

<strong>of</strong> which vfs-related system calls should be hijacked.<br />

<strong>The</strong>se differ from <strong>the</strong> pathname-based file system<br />

syscalls in that <strong>the</strong>re is no pathname to make <strong>the</strong><br />

selection based on. Current possible values are<br />

‘‘nfssvc’’, ‘‘getvfsstat’’, <strong>and</strong> ‘‘fhcalls’’. <strong>The</strong>y<br />

indicate hijacking nfssvc(), getvfsstat(), <strong>and</strong> all<br />

file h<strong>and</strong>le calls, respectively. <strong>The</strong> file h<strong>and</strong>le<br />

calls include fhopen(), fhstat(), <strong>and</strong> fhstatvfs1().<br />

It is also possible to use ‘‘all’’ <strong>and</strong> ‘‘no’’ in <strong>the</strong><br />

same fashion as with <strong>the</strong> socket hijack specifier.<br />

‘‘sysctl’’<br />

Direct <strong>the</strong> __sysctl() backend <strong>of</strong> <strong>the</strong> sysctl(3) facility<br />

to <strong>the</strong> rump kernel. Acceptable values are<br />

‘‘yes’’ <strong>and</strong> ‘‘no’’, meaning to call <strong>the</strong> rump or <strong>the</strong><br />

host kernel, respectively.<br />

‘‘fd<strong>of</strong>f’’<br />

Adjust <strong>the</strong> library’s fd <strong>of</strong>fset to <strong>the</strong> specified<br />

value. All rump kernel descriptors have <strong>the</strong> <strong>of</strong>fset<br />

added to <strong>the</strong>m before <strong>the</strong>y are returned to <strong>the</strong> application.<br />

This should be changed only if <strong>the</strong> application<br />

defines a low non-default FD_SETSIZE for<br />

select() or if it opens a very large number <strong>of</strong> file<br />

descriptors. <strong>The</strong> default value is 128.<br />

If <strong>the</strong> environment variable is unset, <strong>the</strong> default value<br />

"path=/rump,socket=all:nolocal" is used. <strong>The</strong> rationale for this<br />

NetBSD 5.99.48 March 14, 2011 NetBSD 5.99.48

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

Saved successfully!

Ooh no, something went wrong!