get_buf
char get_buf[24]; /* enough to store a u64 and "\n\0" */
size = strlen(attr->get_buf);
size = scnprintf(attr->get_buf, sizeof(attr->get_buf),
ret = simple_read_from_buffer(buf, len, ppos, attr->get_buf, size);
static char get_buf[BUFMAX];
strcpy(get_buf, "$");
strcat(get_buf, buf);
strcat(get_buf, "#");
get_buf[count + 2] = hex_asc_hi(checksum);
get_buf[count + 3] = hex_asc_lo(checksum);
get_buf[count + 4] = '\0';
v2printk("get%i: %s\n", ts.idx, get_buf);
if (get_buf[get_buf_cnt] == '\0') {
ret = get_buf[get_buf_cnt];
buf = get_buf(q, buf, tot_len);
char get_buf[24]; /* enough to store a u64 and "\n\0" */
if (*ppos && attr->get_buf[0]) {
size = strlen(attr->get_buf);
size = scnprintf(attr->get_buf, sizeof(attr->get_buf),
ret = simple_read_from_buffer(buf, len, ppos, attr->get_buf, size);
bool get_buf;
bool get_buffers = (data->get_bin_args && num_args) || data->get_buf;
if (data->get_buf)
.get_buf = true,
.get_buf = true,
.get_buf = true,
if (get_buf(&len, &buf)) {
void *get_buf(unsigned *, void **);