this post was submitted on 11 Jun 2024
86 points (95.7% liked)

Linux

47955 readers
1153 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I needed to add a custom System Request (Sys Req or SysRq) to a linux kernel some time ago. While doing so, I dug deep into how it works and I thought I’d make a quick post about it. Here is a good SuperUser answer about what a SysRq is. You may also know about SysRq via REISUB. This post has three parts: how to raise a SysRq, how SysRq works (looking into kernel code), and how to add your own SysRq.

Disclaimer: This is my website.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 4 months ago (2 children)

Amazing. I've been 'staring' at the sys rq key for 20 years with Linux and many years before with Win/Dos, and never really knew how it worked, for what, or if it was still used for anything - even then.

Apparently (from light search) sysreq was mostly used in the old days to halt current job and enter a systems menu.

Anyway, thanks for fixing a long-standing knowledge gap :-)

[–] ABasilPlant 5 points 4 months ago* (last edited 4 months ago)

I'm glad you appreciate it! It's always fun digging into kernel internals and learning new things :D

I'm also open to criticism about the writing if you have any.

[–] [email protected] 3 points 4 months ago

No one knows what SysRq was meant for.