check_plugged_state_change(9)
π check_plugged_state_change(9)
okay so bestie, this page is from the Kernel API Manual, and it's giving βone tiny kernel function with a very specific job.β The function is check_plugged_state_change, and the whole plot is spotting when an MC object's plugged state switches up. β¨
πΈ NAME
check_plugged_state_change β Check change in an MC object's plugged state. π
π¦ SYNOPSIS
void check_plugged_state_change (struct fsl_mc_device *mc_dev , struct
fsl_mc_obj_desc *obj_desc );
π ARGUMENTS
mc_devβ pointer to thefsl-mcdevice for a given MC object. It's the device side of the situation, iykyk. π«Άobj_descβ pointer to the MC object's descriptor in the MC. Basically the MC's lil info card for the object. πͺͺβ¨
β¨ DESCRIPTION
If the plugged state has changed from unplugged to plugged, the fsl-mc device is bound to the corresponding device driver. That's the βwelcome to the driver, bestieβ moment. π
If the plugged state has changed from plugged to unplugged, the fsl-mc device is unbound from the corresponding device driver. That's the βokay bye, driverβ moment. ππ
No cap, that's the whole function vibe: state change in, bind/unbind out. π¦
π₯ SEE ALSO
Kernel file ./drivers/bus/fsl-mc/dprc-driver.c β go read the whole squad. π
dprc_remove_devices(9)dprc_add_new_devices(9)dprc_scan_objects(9)dprc_scan_container(9)dprc_irq0_handler_thread(9)dprc_setup(9)dprc_probe(9)dprc_cleanup(9)dprc_remove(9)
xoxo bestie π this page's source/version corner is ./drivers/bus/fsl-mc, dated October 2026, and it's the check_plugged_state_change(9) page. Go check those plugged-state changes, respectfully. π«Άπ
π¦ 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