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

Function msgbuf_cksum

freebsd/kern/subr_msgbuf.c:395–404  ·  view source on GitHub ↗

* Compute the checksum for the complete message buffer contents. */

Source from the content-addressed store, hash-verified

393 * Compute the checksum for the complete message buffer contents.
394 */
395static u_int
396msgbuf_cksum(struct msgbuf *mbp)
397{
398 u_int i, sum;
399
400 sum = 0;
401 for (i = 0; i < mbp->msg_size; i++)
402 sum += (u_char)mbp->msg_ptr[i];
403 return (sum);
404}
405
406/*
407 * Copy from one message buffer to another.

Callers 1

msgbuf_reinitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected