Linux DRM меняет поведение API
Apparently, if your process name starts with the letter 'X', Linux's DRM subsystem will change its API behavior. Something having to do with hacking the kernel rather than fixing X11... Yowza. lore.kernel.org/lkml/2022110... case DRM_CLIENT_CAP_ATOMIC: if (!drm_core_check_feature(dev, DRIVER_ATOMIC)) return -EOPNOTSUPP; /* The modesting DX has a totally broken idea of atomic. */ if (current->comm[0] == 'X' && req->value == 1) /* print if "broken atomic modeset userspace detected, disabling atomic\n" */ return -EOPNOTSUPP; if (req->value > 2) return -EINVAL;
На скриншоте твит Edge Security о странном поведении подсистемы DRM в Linux: если имя процесса начинается с буквы X, API меняет поведение. Шутка высмеивает хак ядра, добавленный вместо исправления X11, и используется как реакция на абсурдные или сомнительные технические решения. EN: A screenshot of an Edge Security tweet about strange behavior in Linux's DRM subsystem: if a process name starts with the letter X, the API changes its behavior. The joke mocks hacking the kernel instead of fixing X11 and is used as a reaction to absurd or questionable technical decisions.
social media post / публикация в соцсетиLinux logo / логотип Linuxtweet interface / интерфейс твитаcode block / блок кодаmonospaced text / моноширинный текстdark background / тёмный фонred link text / красный текст ссылкиprofile avatar / аватар профиляtimestamp / отметка времениengagement icons / иконки реакций
- @right_wing_dev_squads / 8578 2024-01-23
- Type
- image
- Size
- 800×460 · 63.2 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added