Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

kstat(7d) [sunos man page]

kstat(7D)							      Devices								 kstat(7D)

kstat - kernel statistics driver DESCRIPTION
The kstat driver is the mechanism used by the kstat(3KSTAT) library to extract kernel statistics. This is NOT a public interface. FILES
/dev/kstat kernel statistics driver SEE ALSO
kstat(3KSTAT), kstat(9S) SunOS 5.10 26 May 1994 kstat(7D)

Check Out this Related Man Page

kstat_chain_update(3KSTAT)				Kernel Statistics Library Functions				kstat_chain_update(3KSTAT)

kstat_chain_update - update the kstat header chain SYNOPSIS
cc [ flag... ] file... -lkstat [ library...] #include <kstat.h> kid_t kstat_chain_update(kstat_ctl_t *kc); DESCRIPTION
The kstat_chain_update() function brings the user's kstat header chain in sync with that of the kernel. The kstat chain is a linked list of kstat headers (kstat_t's) pointed to by kc->kc_chain, which is initialized by kstat_open(3KSTAT). This chain constitutes a list of all kstats currently in the system. During normal operation, the kernel creates new kstats and delete old ones as various device instances are added and removed, thereby caus- ing the user's copy of the kstat chain to become out of date. The kstat_chain_update() function detects this condition by comparing the kernel's current kstat chain ID (KCID), which is incremented every time the kstat chain changes, to the user's KCID, kc->kc_chain_id. If the KCIDs match, kstat_chain_update() does nothing. Otherwise, it deletes any invalid kstat headers from the user's kstat chain, adds any new ones, and sets kc->kc_chain_id to the new KCID. All other kstat headers in the user's kstat chain are unmodified. RETURN VALUES
Upon successful completion, kstat_chain_update() returns the new KCID if the kstat chain has changed and 0 if it has not changed. Other- wise, it returns -1 and sets errno to indicate the error. ERRORS
The kstat_chain_update() function will fail if: EAGAIN The kstat was temporarily unavailable for reading or writing. ENOMEM Insufficient storage space is available. ENXIO The given kstat could not be located for reading. EOVERFLOW The data for the given kstat was too large to be stored in the structure. FILES
/dev/kstat kernel statistics driver ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
kstat(3KSTAT), kstat_lookup(3KSTAT), kstat_open(3KSTAT), kstat_read(3KSTAT), attributes(5) SunOS 5.11 3 Aug 2004 kstat_chain_update(3KSTAT)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Loading JDK1.3 on Sparc2.6

I have followed instructions to get the jdk for sparc, 1.3 loaded on this sparc workstation machine. I used a tar file and everything seemed to go fine. The usr/j2se directory was created with all the subdirectories and java files. However, attempting to run Java commands fails with a file not... (18 Replies)
Discussion started by: jamestthomas
18 Replies

2. UNIX for Dummies Questions & Answers

please help with openbsd 2.9

Please help. I have downloaded the openbsd 2.9 snapshot from the following files were downloaded from the snapshot dir. ( the whole dir. was downloaded ) base29,bsd,bsd.rd,cdrom29.fs,cksum,comp29,etc29,all three floppy images,game29,index,install.ata,install.chs... (11 Replies)
Discussion started by: Blunt_Killer
11 Replies

3. UNIX for Advanced & Expert Users

I like to mount a remote/local diskette...!

Hi...! I have to connect a remote machine (solaris server) from a workstation, and I want to access the local diskette. I like mount the local diskette in the workstation, not the remote diskette (in the server). The server is a Solaris 2.7 in a Sun Ultra 450. The workstations are Sun Ultra... (6 Replies)
Discussion started by: Kayron
6 Replies

4. UNIX for Dummies Questions & Answers

How to backup a Sun Ultra 60 workstation?

Hi, I'm currently an CS intern working at a small biotech company that has just opened a new office. We are working on a new project, but we were given an older Sun workstation with just a SCSI interface in the back. We don't have a systems administrator, so a couple of us have been working hard... (7 Replies)
Discussion started by: PSC
7 Replies

5. Solaris

sun ultra or sun sparkstation

am wonder wich sun computer is better, a sun ultra or sun sparkstation, and what is the difference (7 Replies)
Discussion started by: nobody
7 Replies

6. Shell Programming and Scripting

Using RSH to delete workstation directory with a fault tolerence

I'm using a UNIX server to RSH into a Windows 2000 workstation... I want to run a script that deletes two directories and then go to the next workstation. This is what I have now, but if for some reason the file is in use or not responding; the 'script' hangs. I'm wondering if anyone knows of... (7 Replies)
Discussion started by: search66
7 Replies

7. UNIX for Dummies Questions & Answers

Please help to configure Sun Blade 150 workstation

Hi, I am new to UNIX. I have a Sun Blade 150 worksation. I used a Dell monitor and Dell keyboard as input and output devices. However, workstation always told me that keyboard couldn't be found. I used Dell keyboard with USB and Dell keyboard with series connector. It all didn't work. Please help... (10 Replies)
Discussion started by: duke0001
10 Replies

8. Shell Programming and Scripting

logging into a workstation from the internet

i have a sun solaris workstation that want to be able to access when i'm not home. is there way to do this? like say i have the workstation turned on at the house but say i'm in a hotel several miles away, i want to be able to access this workstation using the internet on my laptop (7 Replies)
Discussion started by: Terrible
7 Replies

9. Solaris

Issue with kstat

I have a server on Solaris 8 who had a sudden reboot once and now the messages log is filled with these errors: Mar 23 02:14:42 srt-hlr-b unix: NOTICE: kstat_create('unix', 0, 'icmp_minor_1'): cannot create kstat before kstat_init() Mar 23 02:14:42 srt-hlr-b unix: NOTICE: kstat_create('vmem',... (10 Replies)
Discussion started by: StarSol
10 Replies

10. IP Networking

Automated FTP task

Every day i ftp tar.gz a file from the production server to a back up machine.. This task creates way to much traffic on the network at the end of the day and puts and undo load on the production machine during operation hours. i would like to create a script that would automatically fire off the... (36 Replies)
Discussion started by: LowOrderBit
36 Replies

11. Solaris

NIS on vmware workstation

Hi Admins, I just have a doubt on NIS that, is it possible to run NIS on vmware workstation running more than 1 solaris instances. i.e. can we setup one solaris instance as master and others as slaves...?? I have vista on my laptop. I am concern about the domain name it will ask while... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

12. HP-UX

How to clone a 382-workstations hdd?

Hi there, I got a pretty old HP 382 workstation, and the hdd is pretty LOUD ... ;) So I thought I clone it to an much quiter one. I tried this: - removed the loud hdd - connected it to an system running knoppix 7.0.4 (hdd is recognized with UFS filesystem; Clonezilla couldn't handle the... (9 Replies)
Discussion started by: pelegrine
9 Replies

13. Solaris

Copy via samba on vmware workstation with Solaris taking much longer than usual

i have a vmware workstation with solaris 10 installed on this. i copying 2 gb data via samba from windows to this vmware workstation. copy speed is 24 kb/sec. how i can speed up this copy process ? (7 Replies)
Discussion started by: rehantayyab82
7 Replies