Function report |
Source Code:block\bsg.c |
Create Date:2022-07-28 17:37:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bsg_register_queue
Proto:int bsg_register_queue(struct request_queue *q, struct device *parent, const char *name, const struct bsg_ops *ops)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct device * | parent | |
const char * | name | |
const struct bsg_ops * | ops |
417 | If Not queue_is_mq(q) Then Return 0 |
423 | mutex_lock( & bsg_mutex) |
426 | If ret < 0 Then |
431 | Go to unlock |
441 | Go to idr_remove |
445 | If sysfs directory entry Then |
446 | ret = sysfs_create_link( & * queue kobject, & kobj, "bsg") |
447 | If ret Then Go to unregister_class_dev |
452 | Return 0 |
454 | unregister_class_dev : |
456 | idr_remove : |
458 | unlock : |
460 | Return ret |
Name | Describe |
---|---|
bsg_scsi_register_queue | |
bsg_setup_queue | sg_setup_queue - Create and add the bsg hooks so we can receive requests*@dev: device to attach bsg device to*@name: device to give bsg device*@job_fn: bsg job handler*@timeout: timeout handler function pointer*@dd_job_size: size of LLD data needed for |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |