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

Function m_epg_pagelen

freebsd/sys/mbuf.h:397–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396#ifdef _KERNEL
397static inline int
398m_epg_pagelen(const struct mbuf *m, int pidx, int pgoff)
399{
400
401 KASSERT(pgoff == 0 || pidx == 0,
402 ("page %d with non-zero offset %d in %p", pidx, pgoff, m));
403
404 if (pidx == m->m_epg_npgs - 1) {
405 return (m->m_epg_last_len);
406 } else {
407 return (PAGE_SIZE - pgoff);
408 }
409}
410
411#ifdef INVARIANTS
412#define MCHECK(ex, msg) KASSERT((ex), \

Callers 6

sglist_count_mbuf_epgFunction · 0.50
sglist_append_mbuf_epgFunction · 0.50
_mb_unmapped_to_extFunction · 0.50
ktls_encryptFunction · 0.50
m_unmappedtouioFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected