diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-06-21 01:46:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-06-21 01:46:27 +0200 |
commit | 1021b21bc6f8dd522b46116e8598b17f9f93f1b7 (patch) | |
tree | 7e8cbbb8210056562eb6a7669e1060df4e78c97b /src/systemd/sd-login.h | |
parent | ed002560a1945fb8765c5559c293a19bc9e132d8 (diff) |
login: add an api to determine the slice a PID is located in to libsystemd-login
Diffstat (limited to 'src/systemd/sd-login.h')
-rw-r--r-- | src/systemd/sd-login.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index 4855e327a..e37aeda2b 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -72,9 +72,12 @@ int sd_pid_get_unit(pid_t pid, char **unit); int sd_pid_get_user_unit(pid_t pid, char **unit); /* Get machine name from PID, for processes assigned to VM or - * container. This will return an error for non-service processes. */ + * container. This will return an error for non-machine processes. */ int sd_pid_get_machine_name(pid_t pid, char **name); +/* Get slice name from PID. */ +int sd_pid_get_slice(pid_t pid, char **name); + /* Get state from uid. Possible states: offline, lingering, online, active, closing */ int sd_uid_get_state(uid_t uid, char**state); |