]> git.proxmox.com Git - mirror_lxc.git/blame - doc/api-extensions.md
spelling: implementations
[mirror_lxc.git] / doc / api-extensions.md
CommitLineData
aafa5f96
CB
1# API extensions
2
3The changes below were introduced to the LXC API after the 3.0 API was finalized.
4
5They are all backward compatible and can be detected by client tools by
6called the `lxc_has_api_extension` function.
7
8## lxc\_log
9
10This introduces a way to initialize a logging instance from the API for a given
11container.
12
13## lxc\_config\_item\_is\_supported
14
15This introduces the `lxc_config_item_is_supported` function. It allows users to
16check whether their LXC instance supports a given configuration key.
17
18## console\_log
19
20This adds support to container's console log. The console log is implemented as
21an efficient ringbuffer.
22
23## reboot2
24
25This adds `reboot2()` as a new API extension. This function properly waits
26until a reboot succeeded. It takes a timeout argument. When set to `> 0`
27`reboot2()` will block until the timeout is reached, if timeout is set to zero
28`reboot2()` will not block, if set to -1 `reboot2()` will block indefinitly.
29
30## mount\_injection
31
32This adds support for injecting and removing mounts into/from a running
33containers. Two new API functions `mount()` and `umount()` are added. They
34mirror the current mount and umount API of the kernel.