Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 Blaze (he/him)   ( @Blaze@lemmy.zip )  to Linux@programming.dev · 1 year ago

How System Requests Work and How to Add Your Own SysReq

snee.la

external-link
message-square
17
link
fedilink
42
external-link

How System Requests Work and How to Add Your Own SysReq

snee.la

 Blaze (he/him)   ( @Blaze@lemmy.zip )  to Linux@programming.dev · 1 year ago
message-square
17
link
fedilink
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.
alert-triangle
You must log in or # to comment.
  •  jet   ( @jet@hackertalks.com ) Banned
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 year ago

    Removed by mod

    •  Juno   ( @Juno@beehaw.org ) Banned
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      What happened? You don’t want to talk anymore? I thought you wanted to endlessly engage.

      •  Admiral Patrick   ( @ptz@dubvee.org ) 
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 year ago

        Dude(ette): You’re following them around and bordering on harassment. Chill.

    •  Juno   ( @Juno@beehaw.org ) Banned
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Let’s talk about how I don’t like Linus tech tips again. I know your can’t wrap your mind around me having my own opinion and posting one sentence about it

      THIS IS MUCH BETTER

      •  ahto   ( @ahto@discuss.tchncs.de ) 
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        Yeah you’re really showing them how you have the moral high ground by following them to other posts and harassing them there… ???

        •  Juno   ( @Juno@beehaw.org ) Banned
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Who said I wanted moral high ground anymore? 🤔

          •  hydroptic   ( @hydroptic@sopuli.xyz ) 
            link
            fedilink
            arrow-up
            6
            ·
            1 year ago

            You’re behaving like an unhinged stalker, though.

            We all get it, you have an axe to grind with jet, but like maybe keep it to private messages then? What’s the point with following them around and spewing this stuff on completely unrelated communities?

            •  Juno   ( @Juno@beehaw.org ) Banned
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              He gave me a long bit of the opposite of what I asked for. I owe him the same attention.

          •  ahto   ( @ahto@discuss.tchncs.de ) 
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            You were talking about them not being able to comprehend the fact that you have your own opinion, so that was my guess.

  •  hydroptic   ( @hydroptic@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Huh, I never actually gave any thought to how the SysRq key works. Interesting thing to learn after all these decades, heh

    •  jet   ( @jet@hackertalks.com ) Banned
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      1 year ago

      Removed by mod

      •  hydroptic   ( @hydroptic@sopuli.xyz ) 
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I actually don’t know nearly enough about OS design, and I’ve been toying with the idea of learning more for like 20 years now but never manage to get around to it. How’s that book hold up, considering it was (apparently?) published in '96? I’d assume a lot of the basics are still the same, and since it’s a book about the “evolution” of UNIX the historical parts will still be interesting in any case

        •  jet   ( @jet@hackertalks.com ) Banned
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          1 year ago

          Removed by mod

          •  hydroptic   ( @hydroptic@sopuli.xyz ) 
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            The BSD book does seem interesting from a historical perspective, BSD is one of Ye Olden UN*X distros after all. Thanks for the recommendations! I think I’ll try to get my hands on a dead trees version of the BSD book.

            Oh and did you specifically mean “The Design and Implementation of the 4.4BSD Operating System”? Looks like there’s one for FreeBSD as well

            •  jet   ( @jet@hackertalks.com ) Banned
              link
              fedilink
              English
              arrow-up
              3
              ·
              edit-2
              1 year ago

              Removed by mod

              •  Juno   ( @Juno@beehaw.org ) Banned
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                Singapore eh?

              •  Juno   ( @Juno@beehaw.org ) Banned
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                Could have just left me alone 😔

          •  Juno   ( @Juno@beehaw.org ) Banned
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            I’ll set aside a whole day for you to talk about me not liking Linus tech tips if you like.

            Let’s dive deep!

            •  UlrikHD   ( @UlrikHD@programming.dev ) 
              link
              fedilink
              English
              arrow-up
              5
              ·
              1 year ago

              Please refrain from harassing our users, keep whatever argument you have contained to the thread it started. Following and harassing users across communities/instances is not tolerated.

              You will only be given a temporary ban of one week from our instance, but if it continues after that it will changed to a permanent ban.

          •  Juno   ( @Juno@beehaw.org ) Banned
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            What happened? You don’t want to talk endlessly anymore ?

  •  Blaze (he/him)   ( @Blaze@lemmy.zip ) OP
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Website owner is @ABasilPlant@lemmy.world

Linux@programming.dev

linux@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@programming.dev

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

  • !linux_memes@programming.dev
  • !linuxphones@lemmy.ca
  • Matrix instant messaging group chat

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 432 users / day
  • 1.35K users / week
  • 3.01K users / month
  • 5.71K users / 6 months
  • 106 local subscribers
  • 10.5K subscribers
  • 2.57K Posts
  • 12.2K Comments
  • Modlog
  • mods:
  •  Ategon   ( @Ategon@programming.dev ) 
  •  adr1an   ( @anzo@programming.dev ) 
  •  dwraf_of_ignorance   ( @dwraf_of_ignorance@programming.dev ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code