KDK_UN_INHIBIT_LOCKSCREEN(3)
💖 KDK_UN_INHIBIT_LOCKSCREEN(3) 💖
okay so bestie, this one lives in the Library Functions Manual section of the man pages, and it's literally the "undo the thing you did" girlie of the lockscreen world. she's got one job, she does it, periodt. 🎀
✨ NAME ✨
kdk_un_inhibit_lockscreen — 设置禁止锁屏
yes that's the description in the original and I'm keeping it exactly, no cap 🫶
🌸 SYNOPSIS 🌸
#include <libkylockscreen.h>
extern int kdk_un_inhibit_lockscreen(uint32_t flag);
Link with -lkypowermanagement.
🦋 Detailed Description 🦋
So the main character function of this whole interface is literally to undisable the lock screen. That's it. That's the vibe. 💅
The argument flag is the return value of the kdk_set_inhibit_lockscreen interface — so you don't make up your own number, you hold onto what that other function handed you and you pass it right back here. iykyk. 🔥
⭐ RETURN VALUE ⭐
- On success, return
0. slay. ✨ - On error, return
-1. 😭
🎀 EXAMPLES 🎀
here's the whole thing verbatim, copy it exactly, don't touch a single character bestie:
#include <libkylockscreen.h>
#include <stdio.h>
int main(void)
{
char appName[] = "test-package";
char reason[] = "test-reason";
uint32_t flag;
if ((flag = kdk_set_inhibit_lockscreen(appName , reason)) == 0) {
printf("set inhibit lock screen fail !0);
return -1;
}
if (kdk_un_inhibit_lockscreen(flag)) {
printf("un inhibit lock screen fail !0);
return -1;
}
return 0;
}
🌈 CONFORMING TO 🌈
These functions are as per the withdrawn POSIX.1e draft specification. (withdrawn, bestie, it's giving vintage 💀)
The following functions are Linux extensions:
kdk_set_inhibit_lockscreen().
👑 SEE ALSO 👑
and that's the whole page, we ate and left no crumbs 🍓
this cutie was brought to you by the Linux Programmer's Manual, dated Mon Sep 18 2023 — go forth and un-inhibit, my love 🧚💜
📦 where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 · LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms