1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
2 <link rel="stylesheet" href="style.css" type="text/css"/>
3 <script src="code.js" type="text/javascript"></script>
5 <h1>libnbd is easy to use</h1>
8 struct nbd_handle *nbd;
10 nbd = <b>nbd_create</b> ();
12 <b>nbd_connect_unix</b> (nbd, "/tmp/socket");
14 <b>nbd_pread</b> (nbd, buf, sizeof buf, 0, 0);
16 <b>nbd_close</b> (nbd);
22 asynchronous (AIO) API