Editor
90
edits
Line 74: | Line 74: | ||
|- | |- | ||
|} | |} | ||
</center | </center> | ||
The zcp_control_stmt and zc_op_stmt objects defined above are nvpair objects in a hierarchical nvlist. This allows the program constructed in this example to be passed immediately to the kernel for execution. Initially, ZFS channel program construction will be done using a C/C++ API like this one (perhaps a little more rough around the edges). | The zcp_control_stmt and zc_op_stmt objects defined above are nvpair objects in a hierarchical nvlist. This allows the program constructed in this example to be passed immediately to the kernel for execution. Initially, ZFS channel program construction will be done using a C/C++ API like this one (perhaps a little more rough around the edges). | ||
The nvlist object created from this source code would look something like this: | The nvlist object created from this source code would look something like this: | ||
[[File:Example_ZCP_nvlist.jpg]] |