« lib/Mojo/IOLoop/ReadWriteProcess/CGroup/v1/Devices.pm
↑ Summary
lib/Mojo/IOLoop/ReadWriteProcess/CGroup/v1/PID.pm »
| 1 | package Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Netprio; | ||
| 2 | |||
| 3 | 15 | ▶ | use Mojo::Base -base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 15 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 15 | PRIOIDX_INTERFACE => 'net_prio.prioidx', | |
| 7 | IFPRIOMAP_INTERFACE => 'net_prio.ifpriomap', | ||
| 8 | |||
| 9 | 15 | }; | |
| 10 | |||
| 11 | 0 | ▶ | has cgroup => sub { Mojo::IOLoop::ReadWriteProcess::CGroup::v1->new }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 12 | |||
| 13 | 2 | ▶ | sub ifpriomap { shift->cgroup->_setget(IFPRIOMAP_INTERFACE, @_) } |
|
Subroutine
ifpriomap: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 1 | ▶ | sub prioidx { shift->cgroup->_list(PRIOIDX_INTERFACE) } |
|
Subroutine
prioidx: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | |||
| 16 | 15 | 1; | |
| 17 | |||
| 18 | =encoding utf-8 | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Netprio - CGroups v1 Netprio Controller. | ||
| 23 | |||
| 24 | =head1 SYNOPSIS | ||
| 25 | |||
| 26 | use Mojo::IOLoop::ReadWriteProcess::CGroup::v1; | ||
| 27 | |||
| 28 | my $cgroup = Mojo::IOLoop::ReadWriteProcess::CGroup::v1->new( name => "test" ); | ||
| 29 | |||
| 30 | $cgroup->netprio->prioidx; | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | This module uses features that are only available on Linux, | ||
| 35 | and requires cgroups and capability for unshare syscalls to achieve pid isolation. | ||
| 36 | |||
| 37 | =head1 METHODS | ||
| 38 | |||
| 39 | L<Mojo::IOLoop::ReadWriteProcess::CGroup::v1::Netprio> inherits all methods from L<Mojo::Base> and implements | ||
| 40 | the following new ones. | ||
| 41 | |||
| 42 | =head1 LICENSE | ||
| 43 | |||
| 44 | Copyright (C) Ettore Di Giacinto. | ||
| 45 | |||
| 46 | This library is free software; you can redistribute it and/or modify | ||
| 47 | it under the same terms as Perl itself. | ||
| 48 | |||
| 49 | =head1 AUTHOR | ||
| 50 | |||
| 51 | Ettore Di Giacinto E<lt>edigiacinto@suse.comE<gt> | ||
| 52 | |||
| 53 | =cut | ||