From 868a48e6fd620c90fe4843e3e757cb0ca623041f Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 25 May 2018 12:52:32 -0700 Subject: [PATCH] bdev_module.h: replace outdated docs with link The bdev module writer's guide at the top of bdev_module.h is outdated; replace it with a link to the up-to-date documentation in doc/bdev_module.md. Change-Id: I36f745f70596b9e4c9a7495a019a03268460d2dd Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/412539 Tested-by: SPDK Automated Test System Reviewed-by: Tomasz Zawadzki Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto --- include/spdk/bdev_module.h | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/include/spdk/bdev_module.h b/include/spdk/bdev_module.h index 79c0ee3e1..cb78f89e5 100644 --- a/include/spdk/bdev_module.h +++ b/include/spdk/bdev_module.h @@ -34,6 +34,8 @@ /** \file * Block Device Module Interface + * + * For information on how to write a bdev module, see @ref bdev_module. */ #ifndef SPDK_BDEV_MODULE_H @@ -47,35 +49,6 @@ #include "spdk/io_channel.h" #include "spdk/uuid.h" -/** \page block_backend_modules Block Device Backend Modules - * - * To implement a backend block device driver, a number of functions - * dictated by struct spdk_bdev_fn_table must be provided. - * - * The module should register itself using SPDK_BDEV_MODULE_REGISTER to - * define the parameters for the module. - * - *
- * - * In the module initialization code, the config file sections can be parsed to - * acquire custom configuration parameters. For example, if the config file has - * a section such as below: - *
- * [MyBE]
- * MyParam 1234
- * 
- * - * The value can be extracted as the example below: - *
- * struct spdk_conf_section *sp = spdk_conf_find_section(NULL, "MyBe");
- * int my_param = spdk_conf_section_get_intval(sp, "MyParam");
- * 
- * - * The backend initialization routine also need to create "disks". A virtual - * representation of each LUN must be constructed. Mainly a struct spdk_bdev - * must be passed to the bdev database via spdk_bdev_register(). - */ - /** Block device module */ struct spdk_bdev_module { /**