Linux::IO_Prio(3pm) | User Contributed Perl Documentation | Linux::IO_Prio(3pm) |
Linux::IO_Prio - Interface to Linux ioprio_set and ioprio_get via syscall or ionice wrapper.
use Linux::IO_Prio qw(:all); my $status = ioprio_set(IOPRIO_WHO_PROCESS, $$, IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0)); my $status = ionice(IOPRIO_WHO_PROCESS, $$, IOPRIO_CLASS_IDLE, 0);
Use ioprio_get(2) and ioprio_set(2) from Perl. Only Linux is supported currently. Support for other unices will be added once the kernel capabilities are available.
Nothing by default.
The required exports can be specified individually or by tag:
ionice(), ionice_class() and ionice_data() are thin wrappers around the C API allowing conventient single function calls. All of the other exports have the same meaning and prototypes as the C API equivalents. See man ioprio_set(2) for further details.
C API
Wrappers
This module is Copyright (c) 2011 Mark Hindley
All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file. If you need more liberal licensing terms, please contact the maintainer.
This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
Mark Hindley <mark@hindley.org.uk>
2022-10-13 | perl v5.36.0 |