Page MenuHomeFreeBSD

Add kern_sync(9).
ClosedPublic

Authored by trasz on Feb 26 2019, 4:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 3:24 AM
Unknown Object (File)
Sep 3 2025, 10:10 PM
Unknown Object (File)
Sep 3 2025, 6:57 AM
Unknown Object (File)
Sep 1 2025, 5:57 AM
Unknown Object (File)
Sep 1 2025, 4:42 AM
Unknown Object (File)
Aug 15 2025, 8:04 PM
Unknown Object (File)
Jul 17 2025, 9:20 PM
Unknown Object (File)
Jul 17 2025, 6:07 PM
Subscribers

Details

Summary

Add kern_sync(9), and make kernel code call it instead of going
via sys_sync(2). Minor cleanup, no functional changes.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 22748
Build 21840: arc lint + arc unit

Event Timeline

For first commit it is fine, but I would prefer for kern_sync() to have more correct interface, e.g. it can return first error from VFS_SYNC() call (but still calling VFS_SYNC for all mount points).

sys/kern/vfs_syscalls.c
155

Arguably uap wants the __unused attribute.

This revision is now accepted and ready to land.Feb 26 2019, 4:42 PM