)]}'
{
  "commit": "1b671e008c6dc3f3f168958dc3277d721aa0d6f2",
  "tree": "8d5347378c71dd6785095eebe96d195ca3117a60",
  "parents": [
    "e5e01af7b4c7f147c3024c8607962cf944dbb2c7"
  ],
  "author": {
    "name": "Boqun Feng",
    "email": "boqun.feng@gmail.com",
    "time": "Wed Jun 18 09:49:34 2025 -0700"
  },
  "committer": {
    "name": "Boqun Feng",
    "email": "boqun.feng@gmail.com",
    "time": "Thu Jul 17 17:42:54 2025 -0700"
  },
  "message": "rust: sync: Add memory barriers\n\nMemory barriers are building blocks for concurrent code, hence provide\na minimal set of them.\n\nThe compiler barrier, barrier(), is implemented in inline asm instead of\nusing core::sync::atomic::compiler_fence() because memory models are\ndifferent: kernel\u0027s atomics are implemented in inline asm therefore the\ncompiler barrier should be implemented in inline asm as well. Also it\u0027s\ncurrently only public to the kernel crate until there\u0027s a reasonable\ndriver usage.\n\nReviewed-by: Alice Ryhl \u003caliceryhl@google.com\u003e\nSigned-off-by: Boqun Feng \u003cboqun.feng@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cdf28ce8e5116728c97e24893cf12ef41578d3ac",
      "new_mode": 33188,
      "new_path": "rust/helpers/barrier.c"
    },
    {
      "type": "modify",
      "old_id": "83e89f6a68fb715bf7eb0e9fa40a97e731df3894",
      "old_mode": 33188,
      "old_path": "rust/helpers/helpers.c",
      "new_id": "8ddfc8f84e87e5c45d830ad98fde32141c901315",
      "new_mode": 33188,
      "new_path": "rust/helpers/helpers.c"
    },
    {
      "type": "modify",
      "old_id": "b620027e0641905b2391de6273cee6760bf4b4f3",
      "old_mode": 33188,
      "old_path": "rust/kernel/sync.rs",
      "new_id": "c7c0e552bafe0f5587a37fd3dfa2b60a6e65833c",
      "new_mode": 33188,
      "new_path": "rust/kernel/sync.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8f2d435fcd94446e4cb429b1736918deb031576e",
      "new_mode": 33188,
      "new_path": "rust/kernel/sync/barrier.rs"
    }
  ]
}
