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

Function isbufbusy

freebsd/kern/vfs_bio.c:1324–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322#endif
1323
1324static int
1325isbufbusy(struct buf *bp)
1326{
1327 if (((bp->b_flags & B_INVAL) == 0 && BUF_ISLOCKED(bp)) ||
1328 ((bp->b_flags & (B_DELWRI | B_INVAL)) == B_DELWRI))
1329 return (1);
1330 return (0);
1331}
1332
1333/*
1334 * Shutdown the system cleanly to prepare for reboot, halt, or power off.

Callers 1

bufshutdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected