Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/documentation/manual-pages/ja/man9/BUS_SETUP_INTR.9
18093 views
.\" Copyright (c) 2000 Jeroen Ruigrok van der Werven
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" %FreeBSD: src/share/man/man9/BUS_SETUP_INTR.9,v 1.17.2.1 2005/01/10 23:06:34 keramida Exp %
.\"
.\" $FreeBSD$
.Dd January 6, 2005
.Dt BUS_SETUP_INTR 9
.Os
.Sh ̾��
.Nm BUS_SETUP_INTR ,
.Nm bus_setup_intr ,
.Nm BUS_TEARDOWN_INTR ,
.Nm bus_teardown_intr
.Nd �����ߥϥ�ɥ�κ�������³������˲�
.Sh ��
.In sys/param.h
.In sys/bus.h
.Ft int
.Fn BUS_SETUP_INTR "device_t dev" "device_t child" "struct resource *irq" "int flags" "driver_intr_t *intr" "void *arg" "void **cookiep"
.Ft int
.Fn bus_setup_intr "device_t dev" "struct resource *r" "int flags" "driver_intr_t handler" "void *arg" "void **cookiep"
.Ft int
.Fn BUS_TEARDOWN_INTR "device_t dev" "device_t child" "struct resource *irq" "void *cookiep"
.Ft int
.Fn bus_teardown_intr "device_t dev" "struct resource *r" "void *cookiep"
.Sh ����
.Fn BUS_SETUP_INTR
�᥽�åɤϡ��񸻥ޥ͡������
.Xr BUS_ALLOC_RESOURCE 9
�᥽�åɤˤ�äư����˳�����Ƥ�줿�����ߤ��Ф���
�����ߥϥ�ɥ���������ƥ����å����ޤ���
.Fa flags
��
.In sys/bus.h
�Ǹ��Ĥ��ꡢ�����ߤ���ޤ��ʼ����Ϳ���ޤ���
�ޤ���
.Fa flags
�ϥǥХ����ɥ饤�Ф������ˤĤ��Ƥο���Ǥ������򡢳����ߥϥ�ɥ�������ޤ���
.Dv INTR_FAST
�Ϥ��Υϥ�ɥ餬���֤˥���ƥ�����ʴؿ��Τ����
�ϥ�ɥ�Ǥ��뤳�Ȥ��̣���ޤ���
�����Υϥ�ɥ�Υ��ԡ��ɥ��åפΤ�������̤����դ��Ϥ���ޤ���
��������Ѥ�
.Dv INTR_EXCL
��Ť˴ޤߤޤ���
.Dv INTR_EXCL
�Ϥ��Υϥ�ɥ�򤳤γ����ߤΤ������¾Ū�ʥϥ�ɥ�Ȥ��Ƶ�Ͽ���ޤ���
.Dv INTR_MPSAFE
�Ϥ��γ����ߥϥ�ɥ�ϥץꥨ��ץƥ��֤ʴĶ���Ŭ�ڤ�
���� (``SMP ������'') ���ȡ������ ``���㥤����ȥ��å�'' mutex �ˤ�ä�
�ݸ���ɬ�פ��ʤ����Ȥ򡢥������塼������Τ��ޤ���
.Dv INTR_ENTROPY
�Ϥ��γ����ߤ�����ȥ��Ԥ��ɤ����븻�Ǥ���Ȥ��Ƶ�Ͽ���ޤ���
����ϡ�����ȥ��ԥǥХ���
.Pa /dev/random
�ˤ�äƻ��Ѥ���뤳�Ȥ��Ǥ��ޤ���
�ϥ�ɥ�
.Fa intr
��ͣ��ΰ���
.Fa arg
���ͤ�ȼ�ʤäƸƤӽФ���ޤ���
.Pp
.Fa cookiep
�����ϡ�
�����ߤγ�Ω�������������ˡ�
.Fn BUS_SETUP_INTR
�������ƤΥХ������Ѥ��륯�å����Ǥ���
.Vt "void *"
���ؤΥݥ��󥿤Ǥ���
�ɥ饤�к����Ԥϡ����Υ��å����� 0 �ǤϤʤ����Ȥ��ꤹ�뤳�Ȥ�����ޤ���
nexus �ɥ饤�Фϼ��Ի���
.Fa cookiep
�� 0 �����ߤޤ���
.Pp
�����ߥϥ�ɥ�ϡ�
.Fn BUS_TEARDOWN_INTR
�ˤ�äƥǥ��å�����ޤ���
�����������ߥϥ�ɥ���˴����뤿��ˡ����å�����
.Fn BUS_TEARDOWN_INTR
���Ϥ����ɬ�פ�����ޤ���
����
.Fn BUS_TEARDOWN_INTR
�����ȡ����γ����ߴؿ���ͭ���ǤϤʤ��ʤ����٤ȸƤӽФ���ʤ����Ȥ�
�ݾڤ���ޤ���
.Pp
�����δؿ��ؤθƤӽФ��˸򺹤��� mutex ���ݻ�����Ƥ��뤳�Ȥ�ǧ����ޤ���
.Sh �����
�������ˤ� 0 ���֤��졢����ʳ��ξ���Ŭ�ڤʥ��顼���֤���ޤ���
.Sh ��Ϣ����
.Xr random 4 ,
.Xr device 9 ,
.Xr driver 9
.Sh ���
.An -nosplit
���Υޥ˥奢��ڡ����ϡ�
.An Doug Rabson
.Aq [email protected]
�ˤ�äƽ񤫤줿��
.Fn BUS_CREATE_INTR
�����
.Fn BUS_CONNECT_INTR
�Υޥ˥奢��ڡ������ˡ�
.An Jeroen Ruigrok van der Werven
.Aq [email protected]
�ˤ�äƽ񤫤�ޤ�����