Export the values for _SC_AIO_MAX and _SC_AIO_PRIO_DELTA_MAX via the p1003b

sysctl interface.
This commit is contained in:
Alfred Perlstein 2002-11-16 06:38:07 +00:00
parent f3ec9000e9
commit 86d52125a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106979

View File

@ -352,6 +352,8 @@ aio_onceonly(void)
jobrefid = 1;
async_io_version = _POSIX_VERSION;
p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX);
p31b_setcfg(CTL_P1003_1B_AIO_MAX, MAX_AIO_QUEUE);
p31b_setcfg(CTL_P1003_1B_AIO_PRIO_DELTA_MAX, 0);
}
/*
@ -375,6 +377,8 @@ aio_unload(void)
rm_at_exec(aio_proc_rundown);
kqueue_del_filteropts(EVFILT_AIO);
p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, 0);
p31b_setcfg(CTL_P1003_1B_AIO_MAX, 0);
p31b_setcfg(CTL_P1003_1B_AIO_PRIO_DELTA_MAX, 0);
return (0);
}