s3c_gpio_setpull(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… s3c_gpio_setpull

okay so this one is a Kernel API Manual page, bestie, and it's all about one tiny but iconic little function. no cap, it's short β€” so let's get into it 🫢


✨ NAME ✨

s3c_gpio_setpull β€” sets the state of a gpio pin pull resistor, literally that's the whole gig πŸ’«


🌸 SYNOPSIS 🌸

int s3c_gpio_setpull (unsigned int pin , samsung_gpio_pull_t pull );

like look at her. pristine. not a single character out of place πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pin β€” the pin number you wanna configure the pull resistor on. that's the one you're pulling up on, bestie πŸ‘‘
  • pull β€” the actual configuration for the pull resistor. this is the vibe you're assigning ✨

πŸ’– DESCRIPTION πŸ’–

so what does she do? this function sets the state of the pull-{up,down} resistor for the specified pin. that's it, that's the job, and she does it well πŸ’…

return value tea: it returns 0 if successful πŸ₯³ β€” or a negative error code if the pin cannot support the requested pull setting 😭 (yes, some pins are picky, we don't judge them for it).

and pull? it's one of these three, periodt:

  • S3C_GPIO_PULL_NONE
  • S3C_GPIO_PULL_DOWN
  • S3C_GPIO_PULL_UP

no in-between, no "it's complicated," just pick one of the three and slay 🌈


⭐ SEE ALSO ⭐

the whole friend group fr fr 🫢 go read them, iykyk πŸ”₯


and that's the page!! source/version cute little sign-off moment: this iconic piece of documentation lives under ./arch/arm/mach-s3c, dated October 2026, and it's filed as s3c_gpio_setpull(9) πŸ’œ mwah, go set some pull resistors bestie πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from