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

Function aio_process_mlock

freebsd/kern/vfs_aio.c:858–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858static void
859aio_process_mlock(struct kaiocb *job)
860{
861 struct aiocb *cb = &job->uaiocb;
862 int error;
863
864 KASSERT(job->uaiocb.aio_lio_opcode == LIO_MLOCK,
865 ("%s: opcode %d", __func__, job->uaiocb.aio_lio_opcode));
866
867 aio_switch_vmspace(job);
868 error = kern_mlock(job->userproc, job->cred,
869 __DEVOLATILE(uintptr_t, cb->aio_buf), cb->aio_nbytes);
870 aio_complete(job, error != 0 ? -1 : 0, error);
871}
872
873static void
874aio_bio_done_notify(struct proc *userp, struct kaiocb *job)

Callers

nothing calls this directly

Calls 3

aio_switch_vmspaceFunction · 0.85
kern_mlockFunction · 0.85
aio_completeFunction · 0.85

Tested by

no test coverage detected