vfs_aio.c (193951) | vfs_aio.c (197134) |
---|---|
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. --- 5 unchanged lines hidden (view full) --- 14 * of the author. This software is distributed AS-IS. 15 */ 16 17/* 18 * This file contains support for the POSIX 1003.1B AIO/LIO facility. 19 */ 20 21#include <sys/cdefs.h> | 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. --- 5 unchanged lines hidden (view full) --- 14 * of the author. This software is distributed AS-IS. 15 */ 16 17/* 18 * This file contains support for the POSIX 1003.1B AIO/LIO facility. 19 */ 20 21#include <sys/cdefs.h> |
22__FBSDID("$FreeBSD: head/sys/kern/vfs_aio.c 193951 2009-06-10 20:59:32Z kib $"); | 22__FBSDID("$FreeBSD: head/sys/kern/vfs_aio.c 197134 2009-09-12 20:03:45Z rwatson $"); |
23 24#include "opt_compat.h" 25 26#include <sys/param.h> 27#include <sys/systm.h> 28#include <sys/malloc.h> 29#include <sys/bio.h> 30#include <sys/buf.h> --- 336 unchanged lines hidden (view full) --- 367 * aiop async io thread data 368 * aiocb async io jobs 369 * aiol list io job pointer - internal to aio_suspend XXX 370 * aiolio list io jobs 371 */ 372static uma_zone_t kaio_zone, aiop_zone, aiocb_zone, aiol_zone, aiolio_zone; 373 374/* kqueue filters for aio */ | 23 24#include "opt_compat.h" 25 26#include <sys/param.h> 27#include <sys/systm.h> 28#include <sys/malloc.h> 29#include <sys/bio.h> 30#include <sys/buf.h> --- 336 unchanged lines hidden (view full) --- 367 * aiop async io thread data 368 * aiocb async io jobs 369 * aiol list io job pointer - internal to aio_suspend XXX 370 * aiolio list io jobs 371 */ 372static uma_zone_t kaio_zone, aiop_zone, aiocb_zone, aiol_zone, aiolio_zone; 373 374/* kqueue filters for aio */ |
375static struct filterops aio_filtops = 376 { 0, filt_aioattach, filt_aiodetach, filt_aio }; 377static struct filterops lio_filtops = 378 { 0, filt_lioattach, filt_liodetach, filt_lio }; | 375static struct filterops aio_filtops = { 376 .f_isfd = 0, 377 .f_attach = filt_aioattach, 378 .f_detach = filt_aiodetach, 379 .f_event = filt_aio, 380}; 381static struct filterops lio_filtops = { 382 .f_isfd = 0, 383 .f_attach = filt_lioattach, 384 .f_detach = filt_liodetach, 385 .f_event = filt_lio 386}; |
379 380static eventhandler_tag exit_tag, exec_tag; 381 382TASKQUEUE_DEFINE_THREAD(aiod_bio); 383 384/* 385 * Main operations function for use as a kernel module. 386 */ --- 2569 unchanged lines hidden --- | 387 388static eventhandler_tag exit_tag, exec_tag; 389 390TASKQUEUE_DEFINE_THREAD(aiod_bio); 391 392/* 393 * Main operations function for use as a kernel module. 394 */ --- 2569 unchanged lines hidden --- |