.\" -*- coding: UTF-8 -*- .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu) .\" Portions extracted from linux/kernel/ioport.c (no copyright notice). .\" .\" %%%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 Tue Aug 1 16:47 1995 by Jochen Karrer .\" .\" Modified Tue Oct 22 08:11:14 EDT 1996 by Eric S. Raymond .\" Modified Fri Nov 27 14:50:36 CET 1998 by Andries Brouwer .\" Modified, 27 May 2004, Michael Kerrisk .\" Added notes on capability requirements .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH IOPL 2 "13 августа 2020 г." Linux "Руководство программиста Linux" .SH ИМЯ iopl \- меняет уровень привилегий ввода\-вывода .SH СИНТАКСИС \fB#include \fP .PP \fBint iopl(int \fP\fIlevel\fP\fB);\fP .SH ОПИСАНИЕ \fBiopl\fP() changes the I/O privilege level of the calling thread, as specified by the two least significant bits in \fIlevel\fP. .PP The I/O privilege level for a normal thread is 0. Permissions are inherited from parents to children. .PP This call is deprecated, is significantly slower than \fBioperm\fP(2), and is only provided for older X servers which require access to all 65536 I/O ports. It is mostly for the i386 architecture. On many other architectures it does not exist or will always return an error. .SH "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" При успешном выполнении возвращается 0. В случае ошибки возвращается \-1, а \fIerrno\fP устанавливается в соответствующее значение. .SH ОШИБКИ .TP \fBEINVAL\fP Значение \fIlevel\fP больше 3. .TP \fBENOSYS\fP Этот вызов не реализован. .TP \fBEPERM\fP The calling thread has insufficient privilege to call \fBiopl\fP(); the \fBCAP_SYS_RAWIO\fP capability is required to raise the I/O privilege level above its current value. .SH "СООТВЕТСТВИЕ СТАНДАРТАМ" Вызов \fBiopl\fP() есть только в Linux, и он не должен использоваться в переносимых программах. .SH ЗАМЕЧАНИЯ .\" Libc5 treats it as a system call and has a prototype in .\" .IR . .\" Glibc1 does not have a prototype. В glibc2 прототип расположен в \fI\fP и \fI\fP. Не используйте последний вариант, он существует только для i386. .PP Prior to Linux 5.5 \fBiopl\fP() allowed the thread to disable interrupts while running at a higher I/O privilege level. This will probably crash the system, and is not recommended. .PP До Linux 3.7 на некоторых архитектурах (например, i386), права \fIнаследовались\fP потомком, созданным \fBfork\fP(2), и сохранялись при \fBexecve\fP(2). Такое поведение было неумышленно изменено в Linux 3.7, и не будет возвращено назад. .SH "СМ. ТАКЖЕ" \fBioperm\fP(2), \fBoutb\fP(2), \fBcapabilities\fP(7) .SH ЗАМЕЧАНИЯ Эта страница является частью проекта Linux \fIman\-pages\fP версии 5.10. Описание проекта, информацию об ошибках и последнюю версию этой страницы можно найти по адресу \%https://www.kernel.org/doc/man\-pages/. .PP .SH ПЕРЕВОД Русский перевод этой страницы руководства был сделан Azamat Hackimov , Dmitriy S. Seregin , Yuri Kozlov и Иван Павлов . .PP Этот перевод является бесплатной документацией; прочитайте .UR https://www.gnu.org/licenses/gpl-3.0.html Стандартную общественную лицензию GNU версии 3 .UE или более позднюю, чтобы узнать об условиях авторского права. Мы не несем НИКАКОЙ ОТВЕТСТВЕННОСТИ. .PP Если вы обнаружите ошибки в переводе этой страницы руководства, пожалуйста, отправьте электронное письмо на .MT man-pages-ru-talks@lists.sourceforge.net .ME .