STRUCT MCI_SLOT_PDATA(9)
π struct mci_slot_pdata(9) β bestie's guide to per-slot config β¨
okay so this is a page from the Kernel API Manual (struct mci_slot_pdata(9)), and it's literally just describing a lil struct that holds board-specific per-slot configuration. very demure, very mindful. let's get into it π
πΈ NAME πΈ
struct mci_slot_pdata β board-specific per-slot configuration π
β¨ SYNOPSIS β¨
struct mci_slot_pdata {
unsigned int bus_width;
struct gpio_desc *detect_pin;
struct gpio_desc *wp_pin;
bool non_removable;
};
no cap, that's the whole struct. four fields. she's compact and she knows it π«Ά
π¦ Members π¦
bus_widthβ how many data lines are actually wired up the slot. count 'em π’detect_pinβ the GPIO pin that's wired to the card detect switch. she's the one who notices when a card shows up πwp_pinβ the GPIO pin wired to the write protect sensor. protect the writes, protect the vibe π₯non_removableβ the slot is not removable, so only detect once. main character energy: she stays put π
π Description π
okay so if a given slot is not present on the board, set bus_width to 0. and when you do that, the other fields are just ignored β literally they don't matter at all in this case, so don't stress about them π
any pins that aren't available? set them to a negative value. negative. like, "this pin is not the vibe" negative π
β οΈ heads up bestie: support for multiple slots is experimental β some cards might get upset if we don't get the clock management exactly right. ngl that's a real risk π but in most cases, it should work just fine. she usually slays β¨
π SEE ALSO π
- Kernel file
./drivers/mmc/host/atmel-mci.cπ struct atmel_mci(9)struct atmel_mci_slot(9)
go read those next, iykyk π
and that's the whole page, bestie! sources say this one lives in ./drivers/mmc/host, dated October 2026, and yes β she's struct mci_slot_pdata(9), iconic from start to finish πβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms