bus_mutex_lock(9)
π bus_mutex_lock(9) β aka the glow-up where your mutex finally gets locked down
ok so this is a page straight out of the Kernel API Manual, bestie β bus_mutex_lock(9), no cap. It's a little one but she's important, so let's get into it β¨
πΈ NAME πΈ
bus_mutex_lock β literally just "Acquire the mutex". That's the whole vibe. She acquires. She locks. She leaves. π
π SYNOPSIS π
bool bus_mutex_lock (struct mutex *lock );
yes that's a bool return, remember it, there will be a quiz later π«Ά
π¦ ARGUMENTS π¦
lockβ the w1 bus mutex you're trying to acquire. that's it. that's the whole argument. one (1) mutex, hand it over π
β¨ DESCRIPTION β¨
okay so here's the tea β β this function is persistent. It tries to acquire that mutex W1_THERM_MAX_TRY times, and between every 2 attempts it waits W1_THERM_RETRY_DELAY. Like, it's not gonna give up after one try, she's gonna try try try and wait a lil bit in between. main character energy fr fr π₯
no drama, no fancy options, just patience and vibes.
π RETURN π
returns true if the mutex is acquired and lock β and false otherwise. so like, check your return value bestie, don't just assume π
π SEE ALSO π
the whole friend group, gathered here, iconic:
- kernel file
./drivers/w1/slaves/w1_therm.c - struct
w1_therm_family_converter(9) - struct
w1_therm_family_data(9) - struct
therm_info(9) reset_select_slave(9)convert_t(9)read_scratchpad(9)write_scratchpad(9)copy_scratchpad(9)recall_eeprom(9)read_powermode(9)trigger_bulk_read(9)w1_therm_add_slave(9)w1_therm_remove_slave(9)w1_DS18B20_convert_temp(9)w1_DS18S20_convert_temp(9)w1_DS1825_convert_temp(9)device_family(9)check_family_data(9)bulk_read_support(9)conversion_time(9)temperature_from_RAM(9)int_to_short(9)w1_poll_completion(9)
like a whole group chat of functions, and you're invited π«Ά
that's the page!! π sourced from ./drivers/w1/slaves, dated October 2026, and honestly? bus_mutex_lock(9) ate and left no crumbs. go lock that mutex, bestie β mwah ππ
π¦ 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