Home
last modified time | relevance | path

Searched refs:tbuf (Results 1 – 6 of 6) sorted by relevance

/net/dccp/
Dprobe.c59 char tbuf[256]; in printl() local
66 len = sprintf(tbuf, "%lu.%06lu ", in printl()
69 len += vscnprintf(tbuf+len, sizeof(tbuf)-len, fmt, args); in printl()
72 kfifo_in_locked(&dccpw.fifo, tbuf, len, &dccpw.lock); in printl()
122 unsigned char *tbuf; in dccpprobe_read() local
130 tbuf = vmalloc(len); in dccpprobe_read()
131 if (!tbuf) in dccpprobe_read()
139 cnt = kfifo_out_locked(&dccpw.fifo, tbuf, len, &dccpw.lock); in dccpprobe_read()
140 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0; in dccpprobe_read()
143 vfree(tbuf); in dccpprobe_read()
/net/sctp/
Dprobe.c75 char tbuf[256]; in printl() local
78 len = vscnprintf(tbuf, sizeof(tbuf), fmt, args); in printl()
81 kfifo_in_locked(&sctpw.fifo, tbuf, len, &sctpw.lock); in printl()
97 unsigned char *tbuf; in sctpprobe_read() local
105 tbuf = vmalloc(len); in sctpprobe_read()
106 if (!tbuf) in sctpprobe_read()
114 cnt = kfifo_out_locked(&sctpw.fifo, tbuf, len, &sctpw.lock); in sctpprobe_read()
115 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0; in sctpprobe_read()
118 vfree(tbuf); in sctpprobe_read()
/net/ipv4/
Dtcp_probe.c186 static int tcpprobe_sprint(char *tbuf, int n) in tcpprobe_sprint() argument
193 return scnprintf(tbuf, n, in tcpprobe_sprint()
211 char tbuf[256]; in tcpprobe_read() local
227 width = tcpprobe_sprint(tbuf, sizeof(tbuf)); in tcpprobe_read()
239 if (copy_to_user(buf + cnt, tbuf, width)) in tcpprobe_read()
Darp.c1306 char tbuf[16]; in arp_format_neigh_entry() local
1328 sprintf(tbuf, "%pI4", n->primary_key); in arp_format_neigh_entry()
1330 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); in arp_format_neigh_entry()
1339 char tbuf[16]; in arp_format_pneigh_entry() local
1341 sprintf(tbuf, "%pI4", n->key); in arp_format_pneigh_entry()
1343 tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", in arp_format_pneigh_entry()
/net/sunrpc/
Dcache.c1433 char tbuf[22]; in read_flush() local
1437 snprintf(tbuf, sizeof(tbuf), "%lu\n", convert_to_wallclock(cd->flush_time)); in read_flush()
1438 len = strlen(tbuf); in read_flush()
1444 if (copy_to_user(buf, (void*)(tbuf+p), len)) in read_flush()
1454 char tbuf[20]; in write_flush() local
1458 if (*ppos || count > sizeof(tbuf)-1) in write_flush()
1460 if (copy_from_user(tbuf, buf, count)) in write_flush()
1462 tbuf[count] = 0; in write_flush()
1463 simple_strtoul(tbuf, &ep, 0); in write_flush()
1467 bp = tbuf; in write_flush()
/net/sunrpc/auth_gss/
Dsvcauth_gss.c1308 char tbuf[20]; in write_gssp() local
1312 if (*ppos || count > sizeof(tbuf)-1) in write_gssp()
1314 if (copy_from_user(tbuf, buf, count)) in write_gssp()
1317 tbuf[count] = 0; in write_gssp()
1318 res = kstrtoul(tbuf, 0, &i); in write_gssp()
1338 char tbuf[10]; in read_gssp() local
1341 snprintf(tbuf, sizeof(tbuf), "%d\n", sn->use_gss_proxy); in read_gssp()
1342 len = strlen(tbuf); in read_gssp()
1348 if (copy_to_user(buf, (void *)(tbuf+p), len)) in read_gssp()