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

Function pbgetbo

freebsd/vm/vm_pager.c:457–466  ·  view source on GitHub ↗

* Associate a p-buffer with a vnode. * * Also sets B_PAGING flag to indicate that vnode is not fully associated * with the buffer. i.e. the bp has not been linked into the vnode or * ref-counted. */

Source from the content-addressed store, hash-verified

455 * ref-counted.
456 */
457void
458pbgetbo(struct bufobj *bo, struct buf *bp)
459{
460
461 KASSERT(bp->b_vp == NULL, ("pbgetbo: not free (vnode)"));
462 KASSERT(bp->b_bufobj == NULL, ("pbgetbo: not free (bufobj)"));
463
464 bp->b_flags |= B_PAGING;
465 bp->b_bufobj = bo;
466}
467
468/*
469 * Disassociate a p-buffer from a vnode.

Callers 2

vnode_pager_input_smlfsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected