| 
bind_virq_to_irq() and bind_evtchn_to_irq() bind these various virtual
interrupt sources into Linux's normal irq-handling subsystem.
A common way of setting a handler for virq, for example, is:
 irq = bind_virq_to_irq(VIRQ_FOO);
 request_irq(irq, ...);
 -- Keir
> Hi, all
>  
> I am reading Xen's source code. Currently it seems that I have some 
> difficulty in finding the interrupt handlers of the virtual machine. In 
> arch/xen/kernl/Evtchn.c, a fucntion 
>      int bind_virq_to_irq (int virq)
> is defined to map virtual irq to irq. However, how can I find the handlers 
> for these irq?
> Take the network interrupts as an example, in 
> arch/xen/drivers/network/Network.c,
>  bind_virq_to_irq is called to set the interrupt handler. However, the source 
> code is 
>  
>   network_irq = bind_virq_to_irq(VIRQ_NET);
>      ....
>   No specific function pointers are mentioned in this process. So, how these 
> interrupt 
>  handlers are set?
>  
>   Thanks a lot!
>  
> Andy
> 
>               
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
 -=- MIME -=- 
--0-751396119-1088414830=:89831
Content-Type: text/plain; charset=us-ascii
Hi, all
 
I am reading Xen's source code. Currently it seems that I have some difficulty 
in finding the interrupt handlers of the virtual machine. In 
arch/xen/kernl/Evtchn.c, a fucntion 
     int bind_virq_to_irq (int virq)
is defined to map virtual irq to irq. However, how can I find the handlers for 
these irq?
Take the network interrupts as an example, in 
arch/xen/drivers/network/Network.c,
 bind_virq_to_irq is called to set the interrupt handler. However, the source 
code is 
 
  network_irq = bind_virq_to_irq(VIRQ_NET);
     ....
  No specific function pointers are mentioned in this process. So, how these 
interrupt 
 handlers are set?
 
  Thanks a lot!
 
Andy
                
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
--0-751396119-1088414830=:89831
Content-Type: text/html; charset=us-ascii
<DIV>Hi, all</DIV>
<DIV> </DIV>
<DIV>I am reading Xen's source code. Currently it seems that I have some 
difficulty in finding the interrupt handlers of the virtual machine. In 
arch/xen/kernl/Evtchn.c, a fucntion </DIV>
<DIV>     int bind_virq_to_irq (int virq)</DIV>
<DIV>is defined to map virtual irq to irq. However, how can I find the handlers 
for these irq?</DIV>
<DIV>Take the network interrupts as an example, in 
arch/xen/drivers/network/Network.c,</DIV>
<DIV> bind_virq_to_irq is called to set the interrupt handler. However, 
the source code is </DIV>
<DIV> </DIV>
<DIV>  network_irq = bind_virq_to_irq(VIRQ_NET);</DIV>
<DIV>     ....</DIV>
<DIV>  No specific function pointers are mentioned in this process. 
So, how these interrupt </DIV>
<DIV> handlers are set?</DIV>
<DIV> </DIV>
<DIV>  Thanks a lot!</DIV>
<DIV> </DIV>
<DIV>Andy</DIV><p>
                <hr size=1>Do you Yahoo!?<br>
<a 
href="http://us.rd.yahoo.com/mail_us/taglines/50x/*http://promotions.yahoo.com/new_mail/static/efficiency.html">Yahoo!
 Mail</a> - 50x more storage than other providers!
--0-751396119-1088414830=:89831--
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
 |