bsg_setup_queue(9)
β¨ NAME β¨
okay bestie, welcome to the bsg_setup_queue(9) page from the Kernel API Manual π this one is literally all about bsg_setup_queue β and what it does is create and add the bsg hooks so we can receive requests. that's the whole vibe, no cap π
πΈ SYNOPSIS πΈ
struct request_queue * bsg_setup_queue (struct device *dev , const char
*name , struct queue_limits *lim , bsg_job_fn *job_fn , bsg_timeout_fn
*timeout , int dd_job_size , unsigned int reply_len );
π¦ ARGUMENTS π¦
devβ the device you're attaching the bsg device to π«Άnameβ the device name you're giving the bsg device β¨limβ queue limits for the bsg queue, iconic little boundaries πjob_fnβ the bsg job handler, aka the main character that handles jobs πtimeoutβ timeout handler function pointer, for when things need a lil time check β°dd_job_sizeβ size of LLD data needed for each job π¦reply_lenβ size of the reply buffer needed for each job π
π§ SEE ALSO π§
- Kernel file
./block/bsg-lib.c bsg_teardown_job(9)bsg_job_done(9)bsg_complete(9)bsg_prepare_job(9)bsg_queue_rq(9)
bestie, that's the whole page β every arg, every reference, every crumb of detail preserved π
and that's a wrap, periodt π
source: ./block Β· date: October 2026 Β· catch you in the kernel, bestie π¦β¨
π¦ 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