How System Requests Work and How to Add Your Own SysReq (snee.la)
from ABasilPlant@lemmy.world to linux@lemmy.ml on 11 Jun 09:23
https://lemmy.world/post/16410101

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.

#linux

threaded - newest

Sims@lemmy.ml on 12 Jun 11:08 collapse

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@lemmy.world on 12 Jun 15:21 next collapse

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.

WarmApplePieShrek@lemmy.dbzer0.com on 12 Jun 18:39 collapse

No one knows what SysRq was meant for.