summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2021-02-22 06:29:56 +0100
committerJens Axboe <axboe@kernel.dk>2021-02-22 14:37:41 +0100
commit1f83bb4b491472310ae7aeca505ed3725149906c (patch)
tree23d09ea4ecbf367b80179d46abf618a1bc1c4710 /kernel
parentblock: remove superfluous param in blk_fill_rwbs() (diff)
downloadlinux-1f83bb4b491472310ae7aeca505ed3725149906c.tar.xz
linux-1f83bb4b491472310ae7aeca505ed3725149906c.zip
blktrace: add blk_fill_rwbs documentation comment
blk_fill_rwbs() is an expoted function, add kernel style documentation comment. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/blktrace.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
index 8a2591c7aa41..d7ebef83771c 100644
--- a/kernel/trace/blktrace.c
+++ b/kernel/trace/blktrace.c
@@ -1867,6 +1867,16 @@ void blk_trace_remove_sysfs(struct device *dev)
#ifdef CONFIG_EVENT_TRACING
+/**
+ * blk_fill_rwbs - Fill the buffer rwbs by mapping op to character string.
+ * @rwbs buffer to be filled
+ * @op: REQ_OP_XXX for the tracepoint
+ *
+ * Description:
+ * Maps the REQ_OP_XXX to character and fills the buffer provided by the
+ * caller with resulting string.
+ *
+ **/
void blk_fill_rwbs(char *rwbs, unsigned int op)
{
int i = 0;