MCPcopy Create free account
hub / github.com/F-Stack/f-stack / netdump_flush_buf

Function netdump_flush_buf

freebsd/netinet/netdump/netdump_client.c:202–218  ·  view source on GitHub ↗

* Flush any buffered vmcore data. */

Source from the content-addressed store, hash-verified

200 * Flush any buffered vmcore data.
201 */
202static int
203netdump_flush_buf(void)
204{
205 int error;
206
207 error = 0;
208 if (nd_conf.nd_buf_len != 0) {
209 struct debugnet_proto_aux auxdata = {
210 .dp_offset_start = nd_conf.nd_tx_off,
211 };
212 error = debugnet_send(nd_conf.nd_pcb, DEBUGNET_DATA, nd_buf,
213 nd_conf.nd_buf_len, &auxdata);
214 if (error == 0)
215 nd_conf.nd_buf_len = 0;
216 }
217 return (error);
218}
219
220/*
221 * Callback from dumpsys() to dump a chunk of memory.

Callers 2

netdump_dumperFunction · 0.85
netdump_write_headersFunction · 0.85

Calls 1

debugnet_sendFunction · 0.85

Tested by

no test coverage detected