Skip to content

Commit

Permalink
blktrace: add blk_fill_rwbs documentation comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chaitanya Kulkarni authored and Jens Axboe committed Feb 22, 2021
1 parent 179d160 commit 1f83bb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/blktrace_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct compat_blk_user_trace_setup {

#endif

extern void blk_fill_rwbs(char *rwbs, unsigned int op);
void blk_fill_rwbs(char *rwbs, unsigned int op);

static inline sector_t blk_rq_trace_sector(struct request *rq)
{
Expand Down
10 changes: 10 additions & 0 deletions kernel/trace/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1f83bb4

Please sign in to comment.