.\" -*- coding: UTF-8 -*- .\" Copyright (C) 2016, Michael Kerrisk .\" Based on an earlier version of the page where a few pieces were .\" copyright (C) 1993 by Dan Miner (dminer@nyx.cs.du.edu) and subsequently .\" others (see old changelog below). .\" The structure definitions are taken more or less straight from the kernel .\" source files. .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" .\" Modified Sat Jul 24 12:35:12 1993 by Rik Faith .\" Modified Tue Oct 22 22:29:51 1996 by Eric S. Raymond .\" Modified Mon Aug 25 16:06:11 1997 by Nicolás Lichtmaier .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SYSINFO 2 "15 september 2017" Linux "Linux Programmeurs Handleiding" .SH NAAM sysinfo \- geeft informatie over totale systeem statistieken .SH SAMENVATTING \fB#include \fP .PP \fBint sysinfo(struct sysinfo *\fP\fIinfo\fP\fB);\fP .SH BESCHRIJVING \fBsysinfo\fP() retourneert bepaalde statistieken over geheugen en swap gebruik, zowel als de gemiddelde belasting. .PP Tot Linux 2.3.16 gaf \fBsysinfo\fP() informatie in de volgende structure: .PP .in +4n .EX struct sysinfo { long uptime; /* Seconden sinds opstarten */ unsigned long loads[3]; /* 1, 5, en 15 minuten belasting gemiddelden */ unsigned long totalram; /* Totale bruikbare werkgeheugen grootte */ unsigned long freeram; /* Beschikbare geheugen grootte */ unsigned long sharedram; /* Hoeveelheid gedeeld geheugen */ unsigned long bufferram; /* Geheugen gebruikt door buffers */ unsigned long totalswap; /* Totaal swap ruimte maat */ unsigned long freeswap; /* Swap ruimte nog steeds beschikbaar */ unsigned short procs; /* Aantal huidige processen */ char _f[22]; /* Vult structuur aan tot 64 bytes */ }; .EE .in .PP In bovenstaande structure, worden de groottes van geheugen en swap velden gegeven in bytes. .PP Vanaf Linux 2.3.23 (i386) en Linux 2.3.48 (alle architecturen) is de structure: .PP .in +4n .EX struct sysinfo { long uptime; /* Seconden sinds opstarten */ unsigned long loads[3]; /* 1, 5, en 15 minuten belasting gemiddelden */ unsigned long totalram; /* Totale bruikbare werkgeheugen grootte */ unsigned long freeram; /* Beschikbare geheugen grootte */ unsigned long sharedram; /* Hoeveelheid gedeeld geheugen */ unsigned long bufferram; /* Geheugen gebruikt door buffers */ unsigned long totalswap; /* Totaal swap ruimte maat */ unsigned long freeswap; /* Swap ruimte nog steeds beschikbaar */ unsigned short procs; /* Aantal huidige processen */ unsigned long totalhigh; /* Totaal hoog geheugen grootte */ unsigned long freehigh; /* Beschikbaar hoog geheugen grootte */ unsigned int mem_unit; /* Memory eenheid grootte in bytes */ char _f[20\-2*sizeof(long)\-sizeof(int)]; /* Padding to 64 bytes */ }; .EE .in .PP In bovenstaande structure worden de groottes van geheugen en swap velden gegeven als veelvouden van \fImem_unit\fP bytes. .SH "EIND WAARDE" Bij succes geeft \fBsysinfo\fP() nul terug. Bij falen wordt \-1 teruggegeven en wordt \fIerrno\fP overeenkomstig gezet. .SH FOUTEN .TP \fBEFAULT\fP \fIinfo\fP is geen geldig adres. .SH VERSIES \fBsysinfo\fP() verscheen voor het eerst in Linux 0.98.pl6. .SH "VOLDOET AAN" Deze functie is Linux\-specifiek, en zou niet gebruikt moeten worden in programma's die overdraagbaar moeten zijn. .SH OPMERKINGEN Alle informatie geleverd door deze systeem aanroep is ook beschikbaar via \fI/proc/meminfo\fP en \fI/proc/loadavg\fP. .SH "ZIE OOK" \fBproc\fP(5) .SH COLOFON Deze pagina is onderdeel van release 5.10 van het Linux \fIman\-pages\fP\-project. Een beschrijving van het project, informatie over het melden van bugs en de nieuwste versie van deze pagina zijn op \%https://www.kernel.org/doc/man\-pages/ te vinden. .PP .SH VERTALING De Nederlandse vertaling van deze handleiding is geschreven door Jos Boersema , Mario Blättermann en Luc Castermans . .PP Deze vertaling is vrije documentatie; lees de .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE of later over de Copyright-voorwaarden. Er is geen AANSPRAKELIJKHEID. .PP Indien U fouten in de vertaling van deze handleiding zou vinden, stuur een e-mail naar .MT debian-l10n-dutch@lists.debian.org .ME .