vfs_aio.c (6cec9cad762b6476313fb1f8e931a1647822db6b) | vfs_aio.c (e015b1ab0a428e65297e44471d257d7eb589b383) |
---|---|
1/*- 2 * Copyright (c) 1997 John S. Dyson. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 497 unchanged lines hidden (view full) --- 506 aiod_timeout = AIOD_TIMEOUT_DEFAULT; 507 aiod_lifetime = AIOD_LIFETIME_DEFAULT; 508 jobrefid = 1; 509 async_io_version = _POSIX_VERSION; 510 p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX); 511 p31b_setcfg(CTL_P1003_1B_AIO_MAX, MAX_AIO_QUEUE); 512 p31b_setcfg(CTL_P1003_1B_AIO_PRIO_DELTA_MAX, 0); 513 | 1/*- 2 * Copyright (c) 1997 John S. Dyson. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 497 unchanged lines hidden (view full) --- 506 aiod_timeout = AIOD_TIMEOUT_DEFAULT; 507 aiod_lifetime = AIOD_LIFETIME_DEFAULT; 508 jobrefid = 1; 509 async_io_version = _POSIX_VERSION; 510 p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX); 511 p31b_setcfg(CTL_P1003_1B_AIO_MAX, MAX_AIO_QUEUE); 512 p31b_setcfg(CTL_P1003_1B_AIO_PRIO_DELTA_MAX, 0); 513 |
514 error = syscall_helper_register(aio_syscalls); | 514 error = syscall_helper_register(aio_syscalls, SY_THR_STATIC_KLD); |
515 if (error) 516 return (error); 517#ifdef COMPAT_FREEBSD32 | 515 if (error) 516 return (error); 517#ifdef COMPAT_FREEBSD32 |
518 error = syscall32_helper_register(aio32_syscalls); | 518 error = syscall32_helper_register(aio32_syscalls, SY_THR_STATIC_KLD); |
519 if (error) 520 return (error); 521#endif 522 return (0); 523} 524 525/* 526 * Callback for unload of AIO when used as a module. --- 2543 unchanged lines hidden --- | 519 if (error) 520 return (error); 521#endif 522 return (0); 523} 524 525/* 526 * Callback for unload of AIO when used as a module. --- 2543 unchanged lines hidden --- |