scan_check_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scan_check_cb(9) β€” the kernel API manual, bestie edition

okay so this is a page from the Kernel API Manual and honestly? it's a little guy with a big job. meet scan_check_cb, the scan callback πŸŽ€


✨ SYNOPSIS ✨

int scan_check_cb (struct ubifs_info *c , const struct ubifs_lprops *lp
, int in_tree , void *arg );

like, look at that signature. four args. immaculate. no notes. 🫢


🌸 ARGUMENTS 🌸

  • c β€” the UBIFS file-system description object. it's giving "the whole entire filesystem, in one struct" energy πŸ‘‘
  • lp β€” the LEB properties to scan. that's the lil bundle of facts about one LEB that we're peeking at πŸ“
  • in_tree β€” whether the LEB properties are in main memory. yes/no, are they already chilling in RAM or not πŸ’­
  • arg β€” lprops statistics to update. you hand it your stats and it does the updating. teamwork fr fr πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? it returns a code, and that code is basically a vibe check on the scan itself. three possible moods 😭

  • LPT_SCAN_CONTINUE β€” the scan should keep going, bestie. don't stop now ✨
  • LPT_SCAN_ADD β€” these LEB properties should be added to the tree in main memory. come on in, the tree's lovely 🌈
  • LPT_SCAN_STOP β€” the scan should stop. that's it, we're done, periodt πŸ’€

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./fs/ubifs/lprops.c β€” and like, so many friends. we're not doing a short list here, we're doing the whole group chat:

and that's the page!! πŸ’… mwah. go update your lprops stats, you icon.

sign-off time: this one lives at ./fs/ubifs, dated October 2026, and it goes by scan_check_cb(9) πŸŽ€ catch you in the source, bestie 🧚

πŸ“¦ where this page comes from