ata_port_pbar_desc(9)
β¨ ata_port_pbar_desc π β the Kernel API Manual moment
okay bestie, so this whole thing lives in the kernel API manual, section 9 β yes, the function-manual section, we love her π
πΈ NAME πΈ
ata_port_pbar_desc β append PCI BAR description. that's it, that's the whole job, and she does it flawlessly β¨
π«Ά SYNOPSIS π«Ά
void ata_port_pbar_desc (struct ata_port *ap , int bar , ssize_t offset
, const char *name );
literally just copy that signature exactly, no cap, don't get creative with it π
π ARGUMENTS π
apβ the target ATA port. like, the port you're doing this for. main character energy πbarβ the target PCI BAR. yes, BAR. we're going to the BAR. iconic πoffsetβ offset into the PCI BAR. and listen, the sign of this one matters a lot, keep reading πnameβ name of the area. give it a cute label, she deserves it π·οΈ
π¦ DESCRIPTION π¦
so here's the vibe check on how this actually behaves π
if offset is negative, this function formats a string that contains the name, address, size and type of the BAR, and appends it to the port description. full reveal, all four things, slay π
if offset is zero or positive, only the name and the offsetted address get appended. that's it. shorter little blurb, still cute π
LOCKING: None. ngl bestie, that's literally what it says β no locking. don't come for me, I'm just the messenger π
π₯ SEE ALSO π₯
this list is long bestie, but we're not skipping a single one β every single reference stays, periodt π§
Kernel file ./drivers/ata/libata-eh.c:
__ata_ehi_push_desc(9)ata_ehi_push_desc(9)ata_ehi_clear_desc(9)ata_port_desc(9)ata_internal_cmd_timeout(9)ata_internal_cmd_timed_out(9)ata_eh_acquire(9)ata_eh_release(9)ata_scsi_error(9)ata_scsi_cmd_error_handler(9)ata_scsi_port_error_handler(9)ata_port_wait_eh(9)ata_eh_set_pending(9)ata_qc_schedule_eh(9)ata_std_sched_eh(9)ata_std_end_eh(9)ata_port_schedule_eh(9)ata_link_abort(9)ata_port_abort(9)__ata_port_freeze(9)ata_port_freeze(9)ata_eh_freeze_port(9)ata_eh_thaw_port(9)ata_eh_qc_complete(9)ata_eh_qc_retry(9)ata_dev_disable(9)ata_eh_detach_dev(9)ata_eh_about_to_do(9)ata_eh_done(9)ata_err_string(9)atapi_eh_tur(9)ata_eh_decide_disposition(9)ata_eh_request_sense(9)atapi_eh_request_sense(9)ata_eh_analyze_serror(9)ata_eh_analyze_tf(9)ata_eh_speed_down_verdict(9)ata_eh_speed_down(9)ata_eh_worth_retry(9)ata_eh_quiet(9)ata_eh_link_set_lpm(9)ata_eh_link_autopsy(9)ata_eh_autopsy(9)ata_get_cmd_name(9)ata_eh_link_report(9)ata_eh_report(9)ata_eh_set_mode(9)atapi_eh_clear_ua(9)ata_eh_maybe_retry_flush(9)ata_eh_recover(9)ata_eh_finish(9)ata_std_error_handler(9)ata_eh_handle_port_suspend(9)ata_eh_handle_port_resume(9)
okay and the cute little sign-off π«Ά β this page comes from ./drivers/ata, dated October 2026, and it's ata_port_pbar_desc(9) all day every day. bye bestie, go append some BAR descriptions ππ¦β¨
π¦ 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