1 :Info: list_processes: lsp:
 2 1984-01-19  list_processes, lsp
 3 
 4 Syntax:
 5   lsp {proc_indicator} {-control_arg}
 6 
 7 
 8 Syntax as an active request:
 9  [lsp {proc_indicator} {-control_arg}]
10 
11 
12 Function:
13 Lists all known processes in the selected FDUMP.
14 
15 As an active request, returns the process_ids meeting the control
16 argument criteria.  If no process matches the criteria, an empty
17 string is returned.  If -count is specified, only the total is
18 returned.
19 
20 
21 Arguments:
22 proc_indicator
23    specifies an individual processes.  It can take one of three
24    forms:
25    - The decimal index (starting at zero) of a process in the FDUMP.
26    - The octal apte offset of the process.
27    - The octal process_id of the process.
28 
29 
30 Control arguments:
31 -all, -a
32    Lists all processes in the FDUMP (Default).
33 -blocked, -blk
34    Lists processes marked as blocked.
35 -count, -ct
36    specified by the control_args.  With -all, it gives the
37    counts of each process state including the overall total.
38 -current, -cur
39     Lists the current process.
40 -page_tbl_lock, -ptl
41     Lists processes marked as page table locking.
42 -ready, -rdy
43     Lists processes marked as ready.
44 
45 
46 -run
47    Lists processes marked as running.
48 -stopped, -stop
49    Lists processes marked as stopped.
50 -wait
51    Lists processes marked as waiting.
52 
53 
54 Examples:
55 
56 The following request displays the SDW for DSEG for all processes in
57 the FDUMP.
58 
59   do "select_process &1; sdw 0" ([list_processes]
60 
61 
62 :hcom:
63 /****^  HISTORY COMMENTS:
64   1) change(2022-10-05,GDixon), approve(2023-01-16,MCR10129),
65      audit(2023-02-28,Swenson), install(2023-02-28,MR12.8-1054):
66       A) Correct typos and vi-reported formatting errors.
67                                                    END HISTORY COMMENTS */
68