|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: s
Length: 28087 (0x6db7)
Names: »sysinfo.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat2/sysinfo.2«
└─⟦this⟧ »./usr/man/cat2/sysinfo.2«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c ┆ u_ a_ l System Call┆
0x0040…0060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 79 73 69 6e 66 6f 28 32 29 0a 0a 0a 0a ┆s sysinfo(2) ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x0080…00a0 20 20 73 79 73 69 6e 66 6f 20 2d 20 67 65 74 20 73 79 73 74 65 6d 20 69 6e 66 6f 72 6d 61 74 69 ┆ sysinfo - get system informati┆
0x00a0…00c0 6f 6e 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 ┆on S S S SY Y Y YN N N NT T T T┆
0x00c0…00e0 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 ┆A A A AX X X X # # # #i i i┆
0x00e0…0100 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 ┆ in n n nc c c cl l l lu u u ud ┆
0x0100…0120 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 ┆d d de e e e < < < <s s s sy y y┆
0x0120…0140 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 ┆ ys s s s/ / / /t t t ty y y yp ┆
0x0140…0160 70 08 70 08 70 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 ┆p p pe e e es s s s. . . .h h h ┆
0x0160…0180 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 ┆h> > > > # # # #i i i in n ┆
0x0180…01a0 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 ┆n nc c c cl l l lu u u ud d d de┆
0x01a0…01c0 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 ┆ e e e < < < <s s s sy y y ys s ┆
0x01c0…01e0 73 08 73 2f 08 2f 08 2f 08 2f 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 69 ┆s s/ / / /s s s sy y y ys s s si┆
0x01e0…0200 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 6f 08 6f 08 6f 08 6f 2e 08 2e 08 2e ┆ i i in n n nf f f fo o o o. . .┆
0x0200…0220 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 79 08 ┆ .h h h h> > > > s s s sy ┆
0x0220…0240 79 08 79 08 79 73 08 73 08 73 08 73 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 ┆y y ys s s si i i in n n nf f f ┆
0x0240…0260 66 6f 08 6f 08 6f 08 6f 28 08 28 08 28 08 28 66 08 66 08 66 08 66 75 08 75 08 75 08 75 6e 08 6e ┆fo o o o( ( ( (f f f fu u u un n┆
0x0260…0280 08 6e 08 6e 63 08 63 08 63 08 63 2c 08 2c 08 2c 08 2c 20 63 08 63 08 63 08 63 72 08 72 08 72 08 ┆ n nc c c c, , , , c c c cr r r ┆
0x0280…02a0 72 69 08 69 08 69 08 69 74 08 74 08 74 08 74 65 08 65 08 65 08 65 72 08 72 08 72 08 72 69 08 69 ┆ri i i it t t te e e er r r ri i┆
0x02a0…02c0 08 69 08 69 61 08 61 08 61 08 61 2c 08 2c 08 2c 08 2c 20 63 08 63 08 63 08 63 75 08 75 08 75 08 ┆ i ia a a a, , , , c c c cu u u ┆
0x02c0…02e0 75 72 08 72 08 72 08 72 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 2c 08 2c ┆ur r r rs s s so o o or r r r, ,┆
0x02e0…0300 08 2c 08 2c 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 6f 08 6f 08 6f 08 ┆ , , i i i in n n nf f f fo o o ┆
0x0300…0320 6f 2c 08 2c 08 2c 08 2c 20 63 08 63 08 63 08 63 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 6e 08 ┆o, , , , c c c co o o ou u u un ┆
0x0320…0340 6e 08 6e 08 6e 74 08 74 08 74 08 74 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 ┆n n nt t t t) ) ) ) i i i i┆
0x0340…0360 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 20 66 08 66 08 66 08 66 75 08 75 08 75 08 75 6e 08 ┆n n n nt t t t f f f fu u u un ┆
0x0360…0380 6e 08 6e 08 6e 63 08 63 08 63 08 63 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08 63 ┆n n nc c c c; ; ; ; c c c c┆
0x0380…03a0 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 63 08 63 ┆h h h ha a a ar r r r * * * *c c┆
0x03a0…03c0 08 63 08 63 72 08 72 08 72 08 72 69 08 69 08 69 08 69 74 08 74 08 74 08 74 65 08 65 08 65 08 65 ┆ c cr r r ri i i it t t te e e e┆
0x03c0…03e0 72 08 72 08 72 08 72 69 08 69 08 69 08 69 61 08 61 08 61 08 61 2c 08 2c 08 2c 08 2c 20 2a 08 2a ┆r r r ri i i ia a a a, , , , * *┆
0x03e0…0400 08 2a 08 2a 63 08 63 08 63 08 63 75 08 75 08 75 08 75 72 08 72 08 72 08 72 73 08 73 08 73 08 73 ┆ * *c c c cu u u ur r r rs s s s┆
0x0400…0420 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 2a 08 2a 08 2a 08 2a 69 08 69 ┆o o o or r r r, , , , * * * *i i┆
0x0420…0440 08 69 08 69 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 6f 08 6f 08 6f 08 6f 3b 08 3b 08 3b 08 3b ┆ i in n n nf f f fo o o o; ; ; ;┆
0x0440…0460 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 20 63 08 63 ┆ i i i in n n nt t t t c c┆
0x0460…0480 08 63 08 63 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 ┆ c co o o ou u u un n n nt t t t┆
0x0480…04a0 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 ┆; ; ; ; D D D DE E E ES S S SC ┆
0x04a0…04c0 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 ┆C C CR R R RI I I IP P P PT T T ┆
0x04c0…04e0 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 ┆TI I I IO O O ON N N N The ┆
0x04e0…0500 5f 08 73 5f 08 79 5f 08 73 5f 08 69 5f 08 6e 5f 08 66 5f 08 6f 20 63 61 6c 6c 20 72 65 71 75 65 ┆_ s_ y_ s_ i_ n_ f_ o call reque┆
0x0500…0520 73 74 73 20 73 79 73 74 65 6d 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 6f 6e 3a 0a 20 20 20 20 20 ┆sts system information on: ┆
0x0520…0540 20 20 20 20 20 6f 08 2b 20 64 65 76 69 63 65 73 0a 20 20 20 20 20 20 20 20 20 20 6f 08 2b 20 74 ┆ o + devices o + t┆
0x0540…0560 68 65 20 66 69 6c 65 20 73 79 73 74 65 6d 0a 20 20 20 20 20 20 20 20 20 20 6f 08 2b 20 74 68 65 ┆he file system o + the┆
0x0560…0580 20 6c 6f 63 61 6c 61 72 65 61 20 6e 65 74 77 6f 72 6b 20 28 4c 41 4e 29 0a 20 20 20 20 20 20 20 ┆ localarea network (LAN) ┆
0x0580…05a0 20 20 20 6f 08 2b 20 6e 6f 64 65 73 0a 20 20 20 20 20 20 20 20 20 20 6f 08 2b 20 70 72 6f 63 65 ┆ o + nodes o + proce┆
0x05a0…05c0 73 73 20 73 74 61 74 75 73 0a 20 20 20 20 20 20 20 20 20 20 6f 08 2b 20 73 79 73 74 65 6d 20 73 ┆ss status o + system s┆
0x05c0…05e0 74 61 74 69 73 74 69 63 73 0a 20 20 20 20 20 20 20 20 20 20 6f 08 2b 20 74 68 65 20 69 6e 74 65 ┆tatistics o + the inte┆
0x05e0…0600 72 6e 65 74 20 6e 65 74 77 6f 72 6b 0a 20 20 20 20 20 20 20 20 20 20 6f 08 2b 20 76 6f 6c 75 6d ┆rnet network o + volum┆
0x0600…0620 65 20 6d 61 6e 61 67 65 6d 65 6e 74 0a 0a 20 20 20 20 20 45 61 63 68 20 72 65 71 75 65 73 74 20 ┆e management Each request ┆
0x0620…0640 75 73 65 73 20 70 61 72 74 69 63 75 6c 61 72 20 64 61 74 61 20 73 74 72 75 63 74 75 72 65 73 20 ┆uses particular data structures ┆
0x0640…0660 69 6e 20 74 68 65 0a 20 20 20 20 20 73 79 73 69 6e 66 6f 2e 68 20 68 65 61 64 65 72 20 66 69 6c ┆in the sysinfo.h header fil┆
0x0660…0680 65 20 74 6f 20 65 73 74 61 62 6c 69 73 68 20 74 68 65 20 73 65 61 72 63 68 20 63 72 69 74 65 72 ┆e to establish the search criter┆
0x0680…06a0 69 61 2e 20 20 54 68 65 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 70 61 72 61 6d 65 74 65 ┆ia. The following paramete┆
0x06a0…06c0 72 73 20 6d 75 73 74 20 62 65 20 73 70 65 63 69 66 69 65 64 3a 0a 0a 20 20 20 20 20 66 08 66 08 ┆rs must be specified: f f ┆
0x06c0…06e0 66 08 66 75 08 75 08 75 08 75 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 20 20 20 20 20 20 53 70 ┆f fu u u un n n nc c c c Sp┆
0x06e0…0700 65 63 69 66 69 65 73 20 74 68 65 20 72 65 71 75 65 73 74 20 28 66 6f 72 20 65 78 61 6d 70 6c 65 ┆ecifies the request (for example┆
0x0700…0720 2c 20 53 49 56 5f 4c 4f 47 56 4f 4c 29 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 ┆, SIV_LOGVOL), as┆
0x0720…0740 20 64 65 73 63 72 69 62 65 64 20 62 65 6c 6f 77 2e 0a 0a 20 20 20 20 20 63 08 63 08 63 08 63 72 ┆ described below. c c c cr┆
0x0740…0760 08 72 08 72 08 72 69 08 69 08 69 08 69 74 08 74 08 74 08 74 65 08 65 08 65 08 65 72 08 72 08 72 ┆ r r ri i i it t t te e e er r r┆
0x0760…0780 08 72 69 08 69 08 69 08 69 61 08 61 08 61 08 61 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 ┆ ri i i ia a a a Specifies the ┆
0x0780…07a0 75 73 65 72 27 73 20 73 65 61 72 63 68 20 63 72 69 74 65 72 69 61 20 66 6f 72 20 61 20 73 79 73 ┆user's search criteria for a sys┆
0x07a0…07c0 74 65 6d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 62 6a 65 63 74 2e 20 20 54 68 65 20 ┆tem object. The ┆
0x07c0…07e0 73 65 61 72 63 68 20 63 72 69 74 65 72 69 61 20 61 72 65 20 65 6e 74 65 72 65 64 20 61 73 20 73 ┆search criteria are entered as s┆
0x07e0…0800 74 72 75 63 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 75 72 65 73 20 6f 66 20 74 68 ┆truc- tures of th┆
0x0800…0820 65 20 66 6f 72 6d 73 20 73 70 65 63 69 66 69 65 64 20 69 6e 20 3c 73 79 73 2f 73 79 73 69 6e 66 ┆e forms specified in <sys/sysinf┆
0x0820…0840 6f 2e 68 3e 2e 0a 0a 20 20 20 20 20 63 08 63 08 63 08 63 75 08 75 08 75 08 75 72 08 72 08 72 08 ┆o.h>. c c c cu u u ur r r ┆
0x0840…0860 72 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 20 20 20 20 46 6f 72 20 75 73 ┆rs s s so o o or r r r For us┆
0x0860…0880 65 20 62 79 20 74 68 65 20 73 79 73 74 65 6d 20 74 6f 20 6d 61 69 6e 74 61 69 6e 20 74 68 65 20 ┆e by the system to maintain the ┆
0x0880…08a0 73 65 61 72 63 68 20 70 6f 73 69 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 69 6f 6e ┆search posi- tion┆
0x08a0…08c0 2e 20 20 54 68 69 73 20 6c 6f 63 61 74 69 6f 6e 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 6d ┆. This location should not be m┆
0x08c0…08e0 61 6e 69 70 75 6c 61 74 65 64 20 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 ┆anipulated or int┆
0x08e0…0900 65 72 70 72 65 74 65 64 20 62 79 20 74 68 65 20 75 73 65 72 2e 20 20 54 68 65 20 5f 08 63 5f 08 ┆erpreted by the user. The _ c_ ┆
0x0900…0920 75 5f 08 72 5f 08 73 5f 08 6f 5f 08 72 20 6d 75 73 74 20 70 6f 69 6e 74 0a 20 20 20 20 20 20 20 ┆u_ r_ s_ o_ r must point ┆
0x0920…0940 20 20 20 20 20 20 20 20 69 6e 69 74 69 61 6c 6c 79 20 74 6f 20 61 20 63 6f 72 72 65 63 74 6c 79 ┆ initially to a correctly┆
0x0940…0960 2d 73 69 7a 65 64 20 61 6e 64 20 7a 65 72 6f 65 64 20 61 72 72 61 79 20 6f 66 0a 20 20 20 20 20 ┆-sized and zeroed array of ┆
0x0960…0980 20 20 20 20 20 20 20 20 20 20 62 79 74 65 73 2e 20 20 54 68 65 20 63 6f 72 72 65 63 74 20 73 69 ┆ bytes. The correct si┆
0x0980…09a0 7a 65 20 66 6f 72 20 65 61 63 68 20 72 65 71 75 65 73 74 20 69 73 0a 20 20 20 20 20 20 20 20 20 ┆ze for each request is ┆
0x09a0…09c0 20 20 20 20 20 20 64 65 66 69 6e 65 64 20 69 6e 20 3c 73 79 73 2f 73 79 73 69 6e 66 6f 2e 68 3e ┆ defined in <sys/sysinfo.h>┆
0x09c0…09e0 2e 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 6f 08 6f ┆. i i i in n n nf f f fo o┆
0x09e0…0a00 08 6f 08 6f 20 20 20 20 20 20 52 65 74 75 72 6e 73 20 74 68 65 20 69 6e 66 6f 72 6d 61 74 69 6f ┆ o o Returns the informatio┆
0x0a00…0a20 6e 20 74 68 61 74 20 73 61 74 69 73 66 69 65 73 20 74 68 65 20 63 72 69 2d 0a 20 20 20 20 20 20 ┆n that satisfies the cri- ┆
0x0a20…0a40 20 20 20 20 20 20 20 20 20 74 65 72 69 61 2e 20 20 50 6f 69 6e 74 73 20 74 6f 20 61 6e 20 61 72 ┆ teria. Points to an ar┆
0x0a40…0a60 72 61 79 20 6f 66 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 6b 69 6e 64 0a 20 20 20 20 ┆ray of the appropriate kind ┆
0x0a60…0a80 20 20 20 20 20 20 20 20 20 20 20 6f 66 20 73 74 72 75 63 74 75 72 65 73 20 61 73 20 64 65 66 69 ┆ of structures as defi┆
0x0a80…0aa0 6e 65 64 20 69 6e 20 3c 73 79 73 2f 73 79 73 69 6e 66 6f 2e 68 3e 2e 0a 0a 20 20 20 20 20 63 08 ┆ned in <sys/sysinfo.h>. c ┆
0x0aa0…0ac0 63 08 63 08 63 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 ┆c c co o o ou u u un n n nt t t ┆
0x0ac0…0ae0 74 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 65 6c ┆t Specifies the number of el┆
0x0ae0…0b00 65 6d 65 6e 74 73 20 69 6e 20 74 68 65 20 69 6e 66 6f 72 6d 61 2d 0a 20 20 20 20 20 20 20 20 20 ┆ements in the informa- ┆
0x0b00…0b20 20 20 20 20 20 20 74 69 6f 6e 20 61 72 72 61 79 2e 0a 0a 20 20 20 20 20 54 08 54 08 54 08 54 68 ┆ tion array. T T T Th┆
0x0b20…0b40 08 68 08 68 08 68 65 08 65 08 65 08 65 20 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 ┆ h h he e e e s s s sy y y ys s ┆
0x0b40…0b60 73 08 73 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 6f 08 6f 08 6f 08 6f 2e ┆s si i i in n n nf f f fo o o o.┆
0x0b60…0b80 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 20 48 08 48 08 48 08 48 65 08 65 08 65 08 65 61 08 61 08 ┆ . . .h h h h H H H He e e ea a ┆
0x0b80…0ba0 61 08 61 64 08 64 08 64 08 64 65 08 65 08 65 08 65 72 08 72 08 72 08 72 20 46 08 46 08 46 08 46 ┆a ad d d de e e er r r r F F F F┆
0x0ba0…0bc0 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 0a 20 20 20 20 20 54 68 65 20 73 ┆i i i il l l le e e e The s┆
0x0bc0…0be0 79 73 69 6e 66 6f 2e 68 20 68 65 61 64 65 72 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e 73 20 64 65 ┆ysinfo.h header file contains de┆
0x0be0…0c00 66 69 6e 69 74 69 6f 6e 73 20 61 6e 64 20 64 61 74 61 0a 20 20 20 20 20 73 74 72 75 63 74 75 72 ┆finitions and data structur┆
0x0c00…0c20 65 73 20 74 68 61 74 20 61 6c 6c 6f 77 20 61 63 63 65 73 73 20 74 6f 20 73 79 73 74 65 6d 20 69 ┆es that allow access to system i┆
0x0c20…0c40 6e 66 6f 72 6d 61 74 69 6f 6e 2e 20 20 54 68 65 0a 20 20 20 20 20 63 6f 72 72 65 63 74 20 64 65 ┆nformation. The correct de┆
0x0c40…0c60 63 6c 61 72 61 74 69 6f 6e 73 20 61 6e 64 20 64 65 66 69 6e 69 74 69 6f 6e 73 20 61 72 65 20 67 ┆clarations and definitions are g┆
0x0c60…0c80 69 76 65 6e 20 62 65 6c 6f 77 2e 20 20 46 6f 72 0a 20 20 20 20 20 74 68 65 20 63 6f 6e 74 65 6e ┆iven below. For the conten┆
0x0c80…0ca0 74 73 20 6f 66 20 73 74 72 75 63 74 75 72 65 73 2c 20 72 65 66 65 72 20 74 6f 20 3c 73 79 73 2f ┆ts of structures, refer to <sys/┆
0x0ca0…0cc0 73 79 73 69 6e 66 6f 2e 68 3e 2e 0a 0a 20 20 20 20 20 45 08 45 08 45 08 45 78 08 78 08 78 08 78 ┆sysinfo.h>. E E E Ex x x x┆
0x0cc0…0ce0 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 70 08 70 08 70 08 70 6c 08 6c 08 6c 08 6c 65 08 65 08 ┆a a a am m m mp p p pl l l le e ┆
0x0ce0…0d00 65 08 65 0a 20 20 20 20 20 46 6f 72 20 61 6e 20 65 78 61 6d 70 6c 65 20 6f 66 20 68 6f 77 20 74 ┆e e For an example of how t┆
0x0d00…0d20 6f 20 75 73 65 20 5f 08 73 5f 08 79 5f 08 73 5f 08 69 5f 08 6e 5f 08 66 5f 08 6f 20 73 65 65 20 ┆o use _ s_ y_ s_ i_ n_ f_ o see ┆
0x0d20…0d40 74 68 65 20 73 65 63 74 69 6f 6e 20 41 50 50 4c 49 2d 0a 20 20 20 20 20 43 41 54 49 4f 4e 20 55 ┆the section APPLI- CATION U┆
0x0d40…0d60 53 41 47 45 2e 0a 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 57 08 57 08 57 08 57 69 08 69 08 69 08 ┆SAGE. W W W Wi i i ┆
0x0d60…0d80 69 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 2d 08 2d 08 2d 08 2d 43 08 43 08 43 08 43 61 08 61 ┆il l l ld d d d- - - -C C C Ca a┆
0x0d80…0da0 08 61 08 61 72 08 72 08 72 08 72 64 08 64 08 64 08 64 20 53 08 53 08 53 08 53 65 08 65 08 65 08 ┆ a ar r r rd d d d S S S Se e e ┆
0x0da0…0dc0 65 61 08 61 08 61 08 61 72 08 72 08 72 08 72 63 08 63 08 63 08 63 68 08 68 08 68 08 68 0a 20 20 ┆ea a a ar r r rc c c ch h h h ┆
0x0dc0…0de0 20 20 20 54 68 65 20 73 65 61 72 63 68 20 63 72 69 74 65 72 69 61 20 66 6f 72 20 61 20 72 65 71 ┆ The search criteria for a req┆
0x0de0…0e00 75 65 73 74 20 6d 61 79 20 62 65 20 73 65 74 20 75 70 20 66 6f 72 20 61 20 77 69 6c 64 2d 0a 20 ┆uest may be set up for a wild- ┆
0x0e00…0e20 20 20 20 20 63 61 72 64 20 73 65 61 72 63 68 20 6f 6e 20 74 68 65 20 64 61 74 61 20 62 61 73 65 ┆ card search on the data base┆
0x0e20…0e40 20 6f 66 20 73 79 73 74 65 6d 20 6f 62 6a 65 63 74 73 2e 20 20 54 68 69 73 20 61 6c 6c 6f 77 73 ┆ of system objects. This allows┆
0x0e40…0e60 0a 20 20 20 20 20 74 68 65 20 63 61 6c 6c 65 72 20 74 6f 20 65 78 74 72 61 63 74 20 69 6e 66 6f ┆ the caller to extract info┆
0x0e60…0e80 72 6d 61 74 69 6f 6e 20 6f 6e 20 61 20 73 75 62 73 65 74 20 6f 66 20 73 79 73 74 65 6d 0a 20 20 ┆rmation on a subset of system ┆
0x0e80…0ea0 20 20 20 6f 62 6a 65 63 74 73 20 62 79 20 61 20 75 73 69 6e 67 20 61 20 73 65 71 75 65 6e 63 65 ┆ objects by a using a sequence┆
0x0ea0…0ec0 20 6f 66 20 72 65 70 65 61 74 65 64 20 63 61 6c 6c 73 20 77 69 74 68 20 66 69 78 65 64 0a 20 20 ┆ of repeated calls with fixed ┆
0x0ec0…0ee0 20 20 20 5f 08 63 5f 08 72 5f 08 69 5f 08 74 5f 08 65 5f 08 72 5f 08 69 5f 08 61 2e 20 20 54 68 ┆ _ c_ r_ i_ t_ e_ r_ i_ a. Th┆
0x0ee0…0f00 65 73 65 20 63 61 6c 6c 73 20 74 68 65 6e 20 73 65 71 75 65 6e 74 69 61 6c 6c 79 20 72 65 74 75 ┆ese calls then sequentially retu┆
0x0f00…0f20 72 6e 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 0a 20 20 20 20 20 6f 6e 20 74 68 65 20 6e 65 78 74 20 ┆rn information on the next ┆
0x0f20…0f40 73 65 76 65 72 61 6c 20 6f 62 6a 65 63 74 73 20 75 6e 74 69 6c 20 61 20 76 61 6c 75 65 20 6f 66 ┆several objects until a value of┆
0x0f40…0f60 20 2d 31 20 69 73 20 72 65 74 75 72 6e 65 64 2c 0a 20 20 20 20 20 77 69 74 68 20 5f 08 65 5f 08 ┆ -1 is returned, with _ e_ ┆
0x0f60…0f80 72 5f 08 72 5f 08 6e 5f 08 6f 20 73 65 74 20 74 6f 20 69 6e 64 69 63 61 74 65 20 65 6e 64 2d 6f ┆r_ r_ n_ o set to indicate end-o┆
0x0f80…0fa0 66 2d 73 65 61 72 63 68 20 66 6f 72 20 74 68 65 20 63 72 69 74 65 72 69 61 2e 0a 0a 20 20 20 20 ┆f-search for the criteria. ┆
0x0fa0…0fc0 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6d 61 63 72 6f 73 20 61 72 65 20 64 65 66 69 6e 65 ┆ The following macros are define┆
0x0fc0…0fe0 64 20 69 6e 20 3c 73 79 73 2f 73 79 73 69 6e 66 6f 2e 68 3e 20 61 6e 64 20 6d 61 79 0a 20 20 20 ┆d in <sys/sysinfo.h> and may ┆
0x0fe0…1000 20 20 62 65 20 75 73 65 64 20 69 6e 20 73 65 61 72 63 68 20 63 72 69 74 65 72 69 61 3a 0a 0a 20 ┆ be used in search criteria: ┆
0x1000…1020 20 20 20 20 2f 2a 0a 20 20 20 20 20 20 2a 20 43 6f 6d 6d 6f 6e 20 66 69 65 6c 64 20 74 79 70 65 ┆ /* * Common field type┆
0x1020…1040 73 20 61 6e 64 20 76 61 6c 75 65 73 0a 20 20 20 20 20 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 ┆s and values */ #defi┆
0x1040…1060 6e 65 20 53 49 5f 41 4e 59 20 20 20 20 20 20 2d 31 0a 0a 20 20 20 20 20 2f 2a 20 50 55 20 66 69 ┆ne SI_ANY -1 /* PU fi┆
0x1060…1080 65 6c 64 73 20 2a 2f 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 53 49 5f 41 4e 59 5f 50 55 20 20 ┆elds */ #define SI_ANY_PU ┆
0x1080…10a0 20 2d 31 0a 20 20 20 20 20 23 64 65 66 69 6e 65 20 53 49 5f 54 48 49 53 5f 50 55 20 20 30 0a 0a ┆ -1 #define SI_THIS_PU 0 ┆
0x10a0…10c0 20 20 20 20 20 2f 2a 20 6f 6e 6c 69 6e 65 2f 6f 66 66 6c 69 6e 65 20 66 69 65 6c 64 73 20 2a 2f ┆ /* online/offline fields */┆
0x10c0…10e0 0a 20 20 20 20 20 65 6e 75 6d 20 20 20 20 53 49 5f 4f 4e 4f 46 46 20 20 20 20 7b 0a 20 20 20 20 ┆ enum SI_ONOFF { ┆
0x10e0…1100 20 20 20 20 20 53 49 5f 4f 4e 4f 46 46 5f 41 4e 59 2c 0a 20 20 20 20 20 20 20 20 20 53 49 5f 4f ┆ SI_ONOFF_ANY, SI_O┆
0x1100…1120 4e 4f 46 46 5f 4f 4e 2c 0a 20 20 20 20 20 20 20 20 20 53 49 5f 4f 4e 4f 46 46 5f 4f 46 46 0a 20 ┆NOFF_ON, SI_ONOFF_OFF ┆
0x1120…1140 20 20 20 20 7d 3b 0a 20 20 20 20 20 74 79 70 65 64 65 66 20 65 6e 75 6d 20 53 49 5f 4f 4e 4f 46 ┆ }; typedef enum SI_ONOF┆
0x1140…1160 46 20 20 20 73 69 5f 6f 6e 6f 66 66 3b 0a 0a 20 20 20 20 20 2f 2a 20 76 6f 6c 75 6d 65 20 6d 61 ┆F si_onoff; /* volume ma┆
0x1160…1180 6e 61 67 65 72 20 75 69 64 20 74 61 67 73 20 2a 2f 0a 20 20 20 20 20 65 6e 75 6d 20 20 20 20 53 ┆nager uid tags */ enum S┆
0x1180…11a0 49 5f 56 4f 4c 55 49 44 20 7b 0a 20 20 20 20 20 20 20 20 20 53 49 5f 56 4f 4c 55 49 44 5f 4e 4f ┆I_VOLUID { SI_VOLUID_NO┆
0x11a0…11c0 4e 45 2c 20 20 20 20 20 2f 2a 20 63 72 5f 75 69 64 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 53 49 ┆NE, /* cr_uid */ SI┆
0x11c0…11e0 5f 56 4f 4c 55 49 44 5f 4c 56 2c 20 20 20 20 20 20 20 2f 2a 20 6c 76 20 75 69 64 20 2a 2f 0a 20 ┆_VOLUID_LV, /* lv uid */ ┆
0x11e0…1200 20 20 20 20 20 20 20 20 53 49 5f 56 4f 4c 55 49 44 5f 46 53 2c 20 20 20 20 20 20 20 2f 2a 20 64 ┆ SI_VOLUID_FS, /* d┆
0x1200…1220 65 66 61 75 6c 74 20 66 73 20 75 69 64 20 66 6f 72 20 6c 76 20 2a 2f 0a 20 20 20 20 20 20 20 20 ┆efault fs uid for lv */ ┆
0x1220…1240 20 53 49 5f 56 4f 4c 55 49 44 5f 53 44 2c 20 20 20 20 20 20 20 2f 2a 20 73 75 62 64 69 73 6b 20 ┆ SI_VOLUID_SD, /* subdisk ┆
0x1240…1260 75 69 64 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 53 49 5f 56 4f 4c 55 49 44 5f 50 44 2c 20 20 20 ┆uid */ SI_VOLUID_PD, ┆
0x1260…1280 20 20 20 20 2f 2a 20 70 68 79 73 20 64 69 73 6b 20 75 69 64 20 2a 2f 0a 20 20 20 20 20 20 20 20 ┆ /* phys disk uid */ ┆
0x1280…12a0 20 53 49 5f 56 4f 4c 55 49 44 5f 4d 46 53 20 20 20 20 20 20 20 2f 2a 20 6d 6f 75 6e 74 65 64 20 ┆ SI_VOLUID_MFS /* mounted ┆
0x12a0…12c0 66 73 20 75 69 64 20 2a 2f 0a 20 20 20 20 20 7d 3b 0a 20 20 20 20 20 74 79 70 65 64 65 66 20 65 ┆fs uid */ }; typedef e┆
0x12c0…12e0 6e 75 6d 20 53 49 5f 56 4f 4c 55 49 44 20 20 73 69 5f 76 6f 6c 75 69 64 3b 0a 0a 20 20 20 20 20 ┆num SI_VOLUID si_voluid; ┆
0x12e0…1300 2f 2a 20 73 75 62 70 75 20 75 69 64 20 74 61 67 73 20 2a 2f 0a 20 20 20 20 20 65 6e 75 6d 20 20 ┆/* subpu uid tags */ enum ┆
0x1300…1320 20 20 53 49 5f 53 55 42 50 55 55 49 44 20 7b 0a 20 20 20 20 20 20 20 20 20 53 49 5f 4e 4f 53 55 ┆ SI_SUBPUUID { SI_NOSU┆
0x1320…1340 42 50 55 55 49 44 2c 0a 20 20 20 20 20 20 20 20 20 53 49 5f 53 55 42 50 55 55 49 44 0a 20 20 20 ┆BPUUID, SI_SUBPUUID ┆
0x1340…1360 20 20 7d 3b 0a 20 20 20 20 20 74 79 70 65 64 65 66 20 65 6e 75 6d 20 53 49 5f 53 55 42 50 55 55 ┆ }; typedef enum SI_SUBPUU┆
0x1360…1380 49 44 20 20 20 20 73 69 5f 73 75 62 70 75 75 69 64 3b 0a 0a 44 08 44 08 44 08 44 65 08 65 08 65 ┆ID si_subpuuid; D D D De e e┆
0x1380…13a0 08 65 76 08 76 08 76 08 76 69 08 69 08 69 08 69 63 08 63 08 63 08 63 65 08 65 08 65 08 65 20 49 ┆ ev v v vi i i ic c c ce e e e I┆
0x13a0…13c0 08 49 08 49 08 49 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 6f 08 6f 08 6f 08 6f 72 08 72 08 72 ┆ I I In n n nf f f fo o o or r r┆
0x13c0…13e0 08 72 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6f 08 ┆ rm m m ma a a at t t ti i i io ┆
0x13e0…1400 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 0a 20 20 20 20 20 53 08 53 08 53 08 53 49 08 49 08 49 08 49 ┆o o on n n n S S S SI I I I┆
0x1400…1420 44 08 44 08 44 08 44 5f 08 5f 08 5f 08 5f 53 08 53 08 53 08 53 55 08 55 08 55 08 55 42 08 42 08 ┆D D D D_ _ _ _S S S SU U U UB B ┆
0x1420…1440 42 08 42 50 08 50 08 50 08 50 55 08 55 08 55 08 55 20 20 20 20 20 20 20 20 47 65 74 20 69 6e 66 ┆B BP P P PU U U U Get inf┆
0x1440…1460 6f 72 6d 61 74 69 6f 6e 20 6f 6e 20 73 75 62 2d 50 55 73 2e 0a 20 20 20 20 20 20 20 20 20 20 20 ┆ormation on sub-PUs. ┆
0x1460…1480 20 20 20 20 20 20 20 20 20 20 20 41 72 67 75 6d 65 6e 74 73 3a 0a 20 20 20 20 20 20 20 20 20 20 ┆ Arguments: ┆
0x1480…14a0 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 74 20 20 63 72 5f 73 75 62 70 75 20 20 20 20 ┆ struct cr_subpu ┆
0x14a0…14c0 2a 63 72 69 74 65 72 69 61 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆*criteria; ┆
0x14c0…14e0 20 63 68 61 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 73 6f 72 5b 43 55 52 53 ┆ char cursor[CURS┆
0x14e0…1500 5a 5f 53 55 42 50 55 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆Z_SUBPU]; ┆
0x1500…1520 73 74 72 75 63 74 20 20 73 69 5f 73 75 62 70 75 20 20 20 20 2a 69 6e 66 6f 3b 0a 0a 46 08 46 08 ┆struct si_subpu *info; F F ┆
0x1520…1540 46 08 46 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 20 53 08 53 08 53 08 53 ┆F Fi i i il l l le e e e S S S S┆
0x1540…1560 79 08 79 08 79 08 79 73 08 73 08 73 08 73 74 08 74 08 74 08 74 65 08 65 08 65 08 65 6d 08 6d 08 ┆y y y ys s s st t t te e e em m ┆
0x1560…1580 6d 08 6d 20 49 08 49 08 49 08 49 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 6f 08 6f 08 6f 08 6f ┆m m I I I In n n nf f f fo o o o┆
0x1580…15a0 72 08 72 08 72 08 72 6d 08 6d 08 6d 08 6d 61 08 61 08 61 08 61 74 08 74 08 74 08 74 69 08 69 08 ┆r r r rm m m ma a a at t t ti i ┆
0x15a0…15c0 69 08 69 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 0a 20 20 20 20 20 54 68 65 20 66 69 6c 65 20 ┆i io o o on n n n The file ┆
0x15c0…15e0 73 79 73 74 65 6d 20 63 6f 6e 73 69 73 74 73 20 6f 66 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 61 ┆system consists of one or more a┆
0x15e0…1600 6c 6c 6f 63 61 74 69 6f 6e 20 75 6e 69 74 73 2c 20 6f 72 0a 20 20 20 20 20 41 55 73 2e 20 20 54 ┆llocation units, or AUs. T┆
0x1600…1620 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 41 55 73 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 6e 20 ┆he number of AUs is returned in ┆
0x1620…1640 73 69 5f 6e 61 75 2e 20 20 45 61 63 68 20 41 55 0a 20 20 20 20 20 69 6e 63 6c 75 64 65 73 20 62 ┆si_nau. Each AU includes b┆
0x1640…1660 6c 6f 63 6b 73 20 6f 66 20 66 73 20 63 6f 6e 74 72 6f 6c 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 ┆locks of fs control information ┆
0x1660…1680 66 6f 6c 6c 6f 77 65 64 20 62 79 20 64 61 74 61 0a 20 20 20 20 20 62 6c 6f 63 6b 73 2e 20 20 43 ┆followed by data blocks. C┆
0x1680…16a0 75 72 72 65 6e 74 6c 79 2c 20 74 68 65 20 62 6c 6f 63 6b 20 73 69 7a 65 20 28 72 65 74 75 72 6e ┆urrently, the block size (return┆
0x16a0…16c0 65 64 20 69 6e 20 73 69 5f 62 73 69 7a 65 29 20 69 73 0a 20 20 20 20 20 61 6c 77 61 79 73 20 31 ┆ed in si_bsize) is always 1┆
0x16c0…16e0 30 32 34 2e 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 54 68 65 20 74 6f 74 61 6c 20 6e 75 6d 62 65 72 ┆024. The total number┆
0x16e0…1700 20 6f 66 20 62 6c 6f 63 6b 73 20 75 73 65 64 20 62 79 20 74 68 65 20 66 69 6c 65 20 73 79 73 74 ┆ of blocks used by the file syst┆
0x1700…1720 65 6d 20 28 61 6c 6c 20 41 55 73 29 0a 20 20 20 20 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 6e ┆em (all AUs) is returned in┆
0x1720…1740 20 73 69 5f 73 69 7a 65 3b 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 62 6c 6f 63 6b 73 20 75 ┆ si_size; the number of blocks u┆
0x1740…1760 73 65 64 20 70 65 72 20 41 55 20 69 73 0a 20 20 20 20 20 72 65 74 75 72 6e 65 64 20 69 6e 20 73 ┆sed per AU is returned in s┆
0x1760…1780 69 5f 62 70 75 2e 20 20 28 54 68 65 20 6c 61 73 74 20 41 55 20 6d 61 79 20 62 65 20 73 68 6f 72 ┆i_bpu. (The last AU may be shor┆
0x1780…17a0 74 65 72 2e 20 20 54 68 65 20 73 69 7a 65 0a 20 20 20 20 20 6f 66 20 74 68 65 20 6c 61 73 74 20 ┆ter. The size of the last ┆
0x17a0…17c0 41 55 20 6d 61 79 20 62 65 20 64 65 74 65 72 6d 69 6e 65 64 20 66 72 6f 6d 20 73 69 5f 73 69 7a ┆AU may be determined from si_siz┆
0x17c0…17e0 65 2c 20 73 69 5f 62 70 75 2c 20 61 6e 64 0a 20 20 20 20 20 73 69 5f 6e 61 75 2e 29 20 54 68 65 ┆e, si_bpu, and si_nau.) The┆
0x17e0…1800 20 6e 75 6d 62 65 72 20 6f 66 20 64 61 74 61 20 62 6c 6f 63 6b 73 20 69 6e 20 61 6c 6c 20 41 55 ┆ number of data blocks in all AU┆
0x1800…1820 73 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 6e 0a 20 20 20 20 20 73 69 5f 64 73 69 7a 65 2e 20 ┆s is returned in si_dsize. ┆
0x1820…1840 20 54 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 64 61 74 61 20 62 6c 6f 63 6b 73 20 70 65 72 20 41 ┆ The number of data blocks per A┆
0x1840…1860 55 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 6e 0a 20 20 20 20 20 73 69 5f 64 62 70 75 2e 20 20 ┆U is returned in si_dbpu. ┆
0x1860…1880 28 54 68 65 20 6e 75 6d 62 65 72 20 69 6e 20 74 68 65 20 6c 61 73 74 20 41 55 20 6d 61 79 20 62 ┆(The number in the last AU may b┆
0x1880…18a0 65 20 73 6d 61 6c 6c 65 72 2e 20 54 68 65 0a 20 20 20 20 20 6c 61 73 74 20 41 55 27 73 20 61 72 ┆e smaller. The last AU's ar┆
0x18a0…18c0 65 61 20 6d 61 79 20 62 65 20 64 65 74 65 72 6d 69 6e 65 64 20 66 72 6f 6d 20 73 69 5f 64 73 69 ┆ea may be determined from si_dsi┆
0x18c0…18e0 7a 65 2c 20 73 69 5f 64 62 70 75 2c 20 61 6e 64 0a 20 20 20 20 20 73 69 5f 6e 61 75 2e 29 0a 0a ┆ze, si_dbpu, and si_nau.) ┆
0x18e0…1900 20 20 20 20 20 49 6e 6f 64 65 73 20 61 72 65 20 73 74 6f 72 65 64 20 77 69 74 68 69 6e 20 74 68 ┆ Inodes are stored within th┆
0x1900…1920 65 20 63 6f 6e 74 72 6f 6c 20 62 6c 6f 63 6b 20 72 65 67 69 6f 6e 20 6f 66 20 65 61 63 68 0a 20 ┆e control block region of each ┆
[…truncated at 200 lines…]