# Module cloudi_core_i_os_process

- Description
- Function Index
- Function Details

### CloudI OS Process Configuration

Maximum resource limits can be set after "setcap 'CAP_SYS_RESOURCE=+ep' executable" (on Linux).

Copyright © 2015-2020 Michael Truog

Version: 2.0.1 Dec 3 2021 17:15:32 ------------------------------------------------------------------------

Authors: Michael Truog (`mjtruog at protonmail dot com`).

## Description

### CloudI OS Process Configuration

Maximum resource limits can be set after "setcap 'CAP_SYS_RESOURCE=+ep' executable" (on Linux).

## Function Index

cgroup_format/2 |
cgroup_set/2 |
cgroup_unset/2 |
cgroup_validate/1 |
chroot_format/2 |
directory_format/2 |
limit_format/1 |
limit_validate/1 |
owner_format/2 |
owner_validate/1 |
syscall_lock_format/1 |
syscall_lock_validate/1 |

## Function Details

### cgroup_format/2

`cgroup_format(Values0::cloudi_service_api:cgroup_external(), EnvironmentLookup::cloudi_environment:lookup()) -> cloudi_service_api:cgroup_external()`

### cgroup_set/2

`cgroup_set(OSPid::pos_integer() | undefined, Values::cloudi_service_api:cgroup_external()) -> ok | {error, any()}`

### cgroup_unset/2

`cgroup_unset(OSPid::pos_integer(), Values::cloudi_service_api:cgroup_external()) -> ok`

### cgroup_validate/1

`cgroup_validate(Values::cloudi_service_api:cgroup_external()) -> {ok, cloudi_service_api:cgroup_external()} | {error, {service_options_cgroup_invalid, any()}}`

### chroot_format/2

`chroot_format(Chroot::cloudi_service_api:chroot_external(), EnvironmentLookup::cloudi_environment:lookup()) -> {ok, NewChroot::string()} | {error, any()}`

### directory_format/2

`directory_format(Directory::cloudi_service_api:directory_external(), EnvironmentLookup::cloudi_environment:lookup()) -> {ok, NewDirectory::string()} | {error, any()}`

### limit_format/1

`limit_format(L::[{cloudi_service_api:limit_external_key(), cloudi_service_api:limit_external_value()}]) -> binary()`

### limit_validate/1

`limit_validate(L::cloudi_service_api:limit_external()) -> {ok, [{cloudi_service_api:limit_external_key(), cloudi_service_api:limit_external_value()}]} | {error, {service_options_limit_invalid, any()}}`

### owner_format/2

`owner_format(Values::cloudi_service_api:owner_external(), EnvironmentLookup::cloudi_environment:lookup()) -> {UserI::non_neg_integer(), UserStr::string(), GroupI::non_neg_integer(), GroupStr::string()}`

### owner_validate/1

`owner_validate(Values::cloudi_service_api:owner_external()) -> {ok, cloudi_service_api:owner_external()} | {error, {service_options_owner_invalid, any()}}`

### syscall_lock_format/1

`syscall_lock_format(Values::cloudi_service_api:syscall_lock_external()) -> binary()`

### syscall_lock_validate/1

`syscall_lock_validate(Values::cloudi_service_api:syscall_lock_external()) -> {ok, cloudi_service_api:syscall_lock_external()} | {error, {service_options_syscall_lock_invalid, any()}}`

Generated by EDoc