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