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 thoughts on “e qui mi fermo

  1. 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;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s