lkml.org 
[lkml]   [2008]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] x86: Cleanup prose of Documentation/i386/IO-APIC.txt

* Nick Andrew <nick@nick-andrew.net> wrote:

> I'm doing a couple of cleanups to Documentation/i386/IO-APIC.txt
> and I have a problem with this line, which is supposed to compute
> a sample pirq= kernel parameter:
>
> echo -n pirq=; echo `scanpci | grep T_L | cut -c56-` | sed 's/ /,/g'
>
> The 'scanpci' command used to be part of xutils and/or XFree86.
> Xorg implements "Xorg -scanpci" but the output is different and it won't
> run while X is running.
>
> Firstly I propose using the $( ) construct rather than backticks, since
> it is easier to read:
>
> echo -n pirq=; echo $( scanpci | grep T_L | cut -c56- ) | sed 's/ /,/g'
>
> Inside the backtics, instead of scanpci, I could do:
>
> lspci -v | grep IRQ | sed -e 's/.* IRQ \(\w\+\)/\1/'
>
> Is this an acceptable substitution?

yeah, i guess so.

Btw., that's rather arcane text - do people still have to use pirq= boot
lines to get their boxes to boot?

Ingo


\
 
 \ /
  Last update: 2008-04-13 10:49    [W:0.056 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site