.\" Copyright (C) 1995, Thomas K. Dyas .\" .\" %%%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 .\" .\" Created Wed Aug 9 1995 Thomas K. Dyas .\" .\" Tradotto da Goffredo Baroncelli il 21/4/1998 .\" Aggiornamento a man-pages-2.11 di Giulio Daprelà .\" novembre 2005 .\" Aggiornamento a man-pages-3.53 di Marco Curreli .\" agosto 2013 .\" .TH SYSFS 2 2010-06-27 "Linux" "Linux Programmer's Manual" .SH NOME sysfs \- acquisisce informazioni sul filesystem .SH SINTASSI .BI "int sysfs(int " option ", const char *" fsname ); .BI "int sysfs(int " option ", unsigned int " fs_index ", char *" buf ); .BI "int sysfs(int " option ); .SH DESCRIZIONE .BR sysfs () restituisce informazioni sui tipi di filesystem presenti nel kernel. La sintassi della chiamata di sistema .BR sysfs () dipende dal parametro .I option : .TP 3 .B 1 Converte la stringa identificatrice del filesystem .I fsname in un indice che identifica il filesystem. .TP .B 2 Converte un'indice di un file-system .I fs_index in una stringa terminata con un byte null. Questa stringa viene scritta nel buffer a cui punta .IR buf . Assicurarsi che .I buf abbia abbastanza spazio per accettare la stringa. .TP .B 3 Restituisce il numero di tipi di file-system presenti nel kernel. .PP La numerazione degli indici dei tipi di filesystem presenti incomincia da zero. .SH VALORE RESTITUITO In caso di successo .BR sysfs () restituisce l'indice del filesystem con l'opzione .BR 1 , zero con l'opzione .BR 2 , e il numero del filesystems attualmente configurato con l'opzione .BR 3 . In caso di errore viene restituito \-1, e viene impostato .I errno di conseguenza. .SH ERRORI .TP .B EFAULT .RI "O " fsname " o " buf sono al di fuori del proprio spazio di indirizzamento accessibile. .TP .B EINVAL .I fsname non è un identificatore valido di filesystem; .I fs_index è fuori dai limiti; .I option non è valida. .SH CONFORME A SVr4. .SH NOTE Questa chiamata di sistema derivata da System-V è obsoleta; non va usata. Sui sistemi con .IR /proc , la stessa informazione può essere ricavata da .IR /proc/filesystems ; usare questa interfaccia. .SH BUG Non c'è supporto a libc o glibc. Non c'è modo di capire quanto deve essere grande \fIbuf\fP. .SH COLOPHON Questa pagina fa parte del rilascio 3.73 del progetto Linux .IR man-pages . Una descrizione del progetto, le istruzioni per la segnalazione degli errori, e l'ultima versione di questa pagina si trova su \%http://www.kernel.org/doc/man\-pages/. La versione italiana fa parte del pacchetto .I man-pages-it v. 3.73, a cura di: ILDP "Italian Linux Documentation Project" \%http://www.pluto.it/ildp .br Per la traduzione in italiano si pu\(`o fare riferimento a http://www.pluto.it/ildp/collaborare/ .br Segnalare eventuali errori di traduzione a .IR ildp@pluto.it