[prev in list] [next in list] [prev in thread] [next in thread]
List: net-snmp-patches
Subject: [Net-snmp-patches] [ net-snmp-Patches-694724 ] allows Solaris to make use of kstat strings
From: "SourceForge.net" <noreply () sourceforge ! net>
Date: 2003-02-27 23:22:34
[Download RAW message or body]
Patches item #694724, was opened at 2003-02-27 16:22
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=312694&aid=694724&group_id=12694
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: James Irwin (trogl)
Assigned to: Nobody/Anonymous (nobody)
Summary: allows Solaris to make use of kstat strings
Initial Comment:
As it stands, there are only two methodologies for
accessing kstat information - getKstatInt (which handles
only integers) and getKstat (which is supposed to
handle everything else, but doesn't do strings correctly).
Rather than affect kstat's handling of integers, I have
added a third methodology getKstatString. It uses the
same calling sequence as getKstat, but returns strings.
If you attempt to use it for information kstat knows is
NOT string in nature, it returns an error and a debug
message.
Usage:
for example
char cpu_type[16];
getKstatInt("cpu_info0","cpu_type",cpu_type);
printf("cpu type %s \n",cpu_type);
returns "sparc" on a Sun Ultra 2
The attached file patches:
kernel_sunos5.c
kernel_sunos5.h
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=312694&aid=694724&group_id=12694
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Net-snmp-patches mailing list
Net-snmp-patches@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic