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

Function kerneldump_parity

freebsd/sys/kerneldump.h:119–130  ·  view source on GitHub ↗

* Parity calculation is endian insensitive. */

Source from the content-addressed store, hash-verified

117 * Parity calculation is endian insensitive.
118 */
119static __inline u_int32_t
120kerneldump_parity(struct kerneldumpheader *kdhp)
121{
122 uint32_t *up, parity;
123 u_int i;
124
125 up = (uint32_t *)kdhp;
126 parity = 0;
127 for (i = 0; i < sizeof *kdhp; i += sizeof *up)
128 parity ^= *up++;
129 return (parity);
130}
131
132#ifdef _KERNEL
133struct dump_pa {

Callers 2

dump_finishFunction · 0.85
dump_init_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected