![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 /* 0003 * null_blk trace related helpers. 0004 * 0005 * Copyright (C) 2020 Western Digital Corporation or its affiliates. 0006 */ 0007 #include "trace.h" 0008 0009 /* 0010 * Helper to use for all null_blk traces to extract disk name. 0011 */ 0012 const char *nullb_trace_disk_name(struct trace_seq *p, char *name) 0013 { 0014 const char *ret = trace_seq_buffer_ptr(p); 0015 0016 if (name && *name) 0017 trace_seq_printf(p, "disk=%s, ", name); 0018 trace_seq_putc(p, 0); 0019 0020 return ret; 0021 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |