----- Original Message -----
At 2012-4-19 3:33, Dave Anderson wrote:
> Usage: ipcs [-smMq] [id | address]
>
> And you could also allow multiple id and/or address values to be entered,
> as is done by most of the other crash commands.
Hello Dave,
I am not so sure about the output style, so I need to confirm it.
With multiple id/address, the output below is OK?
crash> ipcs 0 1
VALUE 0:
SHMID_KERNEL KEY SHMID UID PERMS BYTES NATTCH STATUS
ffff880473b54990 00000000 0 0 666 90000 1
SEM_ARRAY KEY SEMID UID PERMS NSEMS
ffff880472037990 00000000 0 0 600 1
VALUE 1: (not found)
I would do something similar to all of the commands that can accept
multiple pid/task-address arguments:
crash> ps 1 500 ffff88003ef20040
ps: invalid task or pid value: 500
PID PPID CPU TASK ST %MEM VSZ RSS COMM
1 0 3 ffff88003ef214c0 IN 0.1 23640 1092 init
3 2 0 ffff88003ef20040 IN 0.0 0 0 [migration/0]
crash>
So in your example, it would look like:
crash> ipcs 0 1
ipcs: invalid id or address: 1
SHMID_KERNEL KEY SHMID UID PERMS BYTES NATTCH STATUS
ffff880473b54990 00000000 0 0 666 90000 1
SEM_ARRAY KEY SEMID UID PERMS NSEMS
ffff880472037990 00000000 0 0 600 1
crash>
Thanks,
Dave