e qui mi fermo

per stanotte… le mie conoscenze limitate di C non mi permettono di capire sta riga…

<font size=-1>
int ret, irq_flags = up->port.flags & UPF_SHARE_IRQ ? <a href="http://www.cs.fsu.edu/~baker/devices/lxr/http/ident?i=IRQF_SHARED">IRQF_SHARED</a> : 0;
</font>

dal file drivers/serial/8250.c +1643

devo capire se viene richiesto uno shared irq (IRQF_SHARED) da questo driver… 8250, o se e’ il serial_cs che non collabora…

da notare che in testa all’8250.c mi sono trovato il seguente messaggio:

<font size=-1>
  52 /*
  53  * Configuration:
  54  *   share_irqs - whether we pass <a href="http://www.cs.fsu.edu/~baker/devices/lxr/http/ident?i=IRQF_SHARED">IRQF_SHARED</a> to request_irq().  <font color=red>This option</font>
  55  *                <font color=red>is unsafe when used on edge-triggered interrupts.</font>
  56  */
  57 static unsigned int share_irqs = <a href="http://www.cs.fsu.edu/~baker/devices/lxr/http/ident?i=SERIAL8250_SHARE_IRQS">SERIAL8250_SHARE_IRQS</a>;
</font>

…notte notte

4 Comments

  1. Comment by birdack on June 5, 2010 11:55 pm

    traduco in un modo piu’ comprensibile quello scritto:

    int ret;
    int irq_flags;
    if (up->port.flags & UPF_SHARE_IRQ)
    irq_flags =IRQF_SHARED ;
    else
    irq_flags = 0;

  2. Comment by Guido Serra on June 5, 2010 11:57 pm

    @birdack: usti… per cui devi vedermi che cacchio gli e’ arrivato in up->port.flags e UPF_SHARE_IRQ … :(

    per oggi vado a nanna… grazie della hint

  3. Comment by birdack on June 5, 2010 11:58 pm

    massi al limite metti una printk se proprio…ti rompi a debuggare seriamente….

  4. Comment by Fabio Pozzi on June 7, 2010 9:23 am

    Magari butta un’occhio a systemtap se non vuoi stare a ricompilare :)

Comments RSS

Leave a comment