e qui mi fermo

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


int ret, irq_flags = up->port.flags & UPF_SHARE_IRQ ? IRQF_SHARED : 0;

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:


  52 /*
  53  * Configuration:
  54  *   share_irqs - whether we pass IRQF_SHARED to request_irq().  This option
  55  *                is unsafe when used on edge-triggered interrupts.
  56  */
  57 static unsigned int share_irqs = SERIAL8250_SHARE_IRQS;

…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