kthread_probe_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to kthread_probe_data(9) from the Kernel API Manual πŸ’… this is the speculative version of kthread_data(), and we're gonna get you through it, no cap ✨


πŸ’– NAME πŸ’–

kthread_probe_data β€” speculative version of kthread_data() πŸ¦‹

✨ SYNOPSIS ✨

void * kthread_probe_data (struct task_struct *task );

πŸŽ€ ARGUMENTS πŸŽ€

  • task β€” the possible kthread task in question, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so task could be a kthread task πŸ‘€ Return the data value specified when it was created, if it's accessible. If task isn't a kthread task, or its data is inaccessible for any reason, you get NULL back β€” that's the whole tea β˜•

This function requires that task itself is safe to dereference, periodt. Like, that's not optional, bestie 😭

🌈 SEE ALSO 🌈

Kernel file: ./kernel/kthread.c β€” and here's the whole squad, no skips, iykyk πŸ’œ


this lil page is from source/version ./kernel, dated October 2026 β€” mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from