Crony's Dungeon
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Blaze (he/him)@lemmy.zip to Linux@programming.dev · 2 years ago

How System Requests Work and How to Add Your Own SysReq

snee.la

external-link
message-square
13
link
fedilink
  • cross-posted to:
  • linux@lemmy.ml
57
external-link

How System Requests Work and How to Add Your Own SysReq

snee.la

Blaze (he/him)@lemmy.zip to Linux@programming.dev · 2 years ago
message-square
13
link
fedilink
  • cross-posted to:
  • linux@lemmy.ml
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@hackertalks.com
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 years ago

    I love abusing sigusr1 and 2. Absolutely no confusion or shooting myself in the foot in 3 months when I forget what I did… No sir

    • Juno@beehaw.orgBanned
      link
      fedilink
      arrow-up
      2
      arrow-down
      7
      ·
      2 years ago

      Removed by mod

      • Admiral Patrick@dubvee.org
        link
        fedilink
        English
        arrow-up
        9
        ·
        2 years ago

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

    • Juno@beehaw.orgBanned
      link
      fedilink
      arrow-up
      1
      arrow-down
      10
      ·
      2 years ago

      Removed by mod

      • ahto@discuss.tchncs.de
        link
        fedilink
        arrow-up
        7
        ·
        2 years 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@beehaw.orgBanned
          link
          fedilink
          arrow-up
          1
          arrow-down
          4
          ·
          2 years ago

          Removed by mod

          • hydroptic@sopuli.xyz
            link
            fedilink
            arrow-up
            6
            ·
            edit-2
            3 months ago

            deleted by creator

            • Juno@beehaw.orgBanned
              link
              fedilink
              arrow-up
              1
              arrow-down
              3
              ·
              2 years ago

              Removed by mod

          • ahto@discuss.tchncs.de
            link
            fedilink
            arrow-up
            2
            ·
            2 years 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@sopuli.xyz
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    3 months ago

    deleted by creator

    • jet@hackertalks.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 years ago

      https://lwn.net/Articles/296738/

      Unix internals is a great book! If you haven’t had an occasion to read it, I can’t recommend it highly enough. Similar to design of the BSD operating system, it goes into the internal data structures, but most importantly the rationale

      • hydroptic@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        edit-2
        3 months ago

        deleted by creator

        • jet@hackertalks.com
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 years ago

          The design of the BSD operating system is more narrative friendly, easier to read just for fun

          Unix internals keeps getting updates, but is far more technically applied. And probably easier to become outdated.

          From a philosophy perspective both books are great but if you could only read one I would recommend the BSD book. I know the Linux kernel and the BSD kernel have divergent development, but as far as posix structures are concerned they’re pretty similar

          • hydroptic@sopuli.xyz
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            edit-2
            3 months ago

            deleted by creator

            • A Basil Plant@lemmy.world
              link
              fedilink
              arrow-up
              4
              ·
              2 years ago

              Operating Systems: Three Easy Pieces by Remzi H. Arpaci-Dusseau & Andrea C. Arpaci-Dusseau (University of Wisconsin-Madison) is an excellent book and used by many universities worldwide. Extremely well written and it’s one of the only textbooks I’ve ever completed from start to end.

              It’s also completely free: https://pages.cs.wisc.edu/~remzi/OSTEP/

              • hydroptic@sopuli.xyz
                link
                fedilink
                arrow-up
                3
                arrow-down
                1
                ·
                edit-2
                3 months ago

                deleted by creator

                • jet@hackertalks.com
                  link
                  fedilink
                  English
                  arrow-up
                  3
                  ·
                  2 years ago

                  100% I’m in the same boat.

                  I looked into various print on demand services with binding, but they always were more hassle than just printing everything at home

            • jet@hackertalks.com
              link
              fedilink
              English
              arrow-up
              3
              ·
              2 years ago

              Yes that’s the book, though I read a older version initially.

              I haven’t read the free BSD version, I wonder if there’s a Linux version? That would be interesting too

              • Juno@beehaw.orgBanned
                link
                fedilink
                arrow-up
                1
                ·
                2 years ago

                Removed by mod

              • Juno@beehaw.orgBanned
                link
                fedilink
                arrow-up
                1
                ·
                2 years ago

                Removed by mod

          • Juno@beehaw.orgBanned
            link
            fedilink
            arrow-up
            1
            arrow-down
            2
            ·
            2 years ago

            Removed by mod

          • Juno@beehaw.orgBanned
            link
            fedilink
            arrow-up
            1
            arrow-down
            2
            ·
            2 years ago

            Removed by mod

            • UlrikHD@programming.dev
              link
              fedilink
              English
              arrow-up
              5
              ·
              2 years 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.

  • Blaze (he/him)@lemmy.zipOP
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    Website owner is @ABasilPlant@lemmy.world

    • A Basil Plant@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      Thanks for cross-posting and tagging me 😄! Perhaps lemmy should push a notification if it’s cross-posted.

      • Blaze (he/him)@lemmy.zipOP
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        You are welcome!

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
  • our Matrix group chat
  • !reactos@programming.dev

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.

  • 264 users / day
  • 1.32K users / week
  • 4.05K users / month
  • 8.8K users / 6 months
  • 1 local subscriber
  • 14.4K subscribers
  • 4.87K Posts
  • 33.3K Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • adr1an@programming.dev
  • dwraf_of_ignorance@programming.dev
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org