/net/dccp/ |
D | probe.c | 58 char tbuf[256]; in printl() local 65 len = sprintf(tbuf, "%lu.%06lu ", in printl() 68 len += vscnprintf(tbuf+len, sizeof(tbuf)-len, fmt, args); in printl() 71 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/ |
D | probe.c | 70 char tbuf[256]; in printl() local 73 len = vscnprintf(tbuf, sizeof(tbuf), fmt, args); in printl() 76 kfifo_in_locked(&sctpw.fifo, tbuf, len, &sctpw.lock); in printl() 92 unsigned char *tbuf; in sctpprobe_read() local 100 tbuf = vmalloc(len); in sctpprobe_read() 101 if (!tbuf) in sctpprobe_read() 109 cnt = kfifo_out_locked(&sctpw.fifo, tbuf, len, &sctpw.lock); in sctpprobe_read() 110 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0; in sctpprobe_read() 113 vfree(tbuf); in sctpprobe_read()
|
/net/ipv4/ |
D | tcp_probe.c | 152 static int tcpprobe_sprint(char *tbuf, int n) in tcpprobe_sprint() argument 159 return scnprintf(tbuf, n, in tcpprobe_sprint() 179 char tbuf[164]; in tcpprobe_read() local 195 width = tcpprobe_sprint(tbuf, sizeof(tbuf)); in tcpprobe_read() 207 if (copy_to_user(buf + cnt, tbuf, width)) in tcpprobe_read()
|
D | arp.c | 1331 char tbuf[16]; in arp_format_neigh_entry() local 1353 sprintf(tbuf, "%pI4", n->primary_key); in arp_format_neigh_entry() 1355 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); in arp_format_neigh_entry() 1364 char tbuf[16]; in arp_format_pneigh_entry() local 1366 sprintf(tbuf, "%pI4", n->key); in arp_format_pneigh_entry() 1368 tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", in arp_format_pneigh_entry()
|
/net/sunrpc/ |
D | cache.c | 1420 char tbuf[22]; in read_flush() local 1424 snprintf(tbuf, sizeof(tbuf), "%lu\n", convert_to_wallclock(cd->flush_time)); in read_flush() 1425 len = strlen(tbuf); in read_flush() 1431 if (copy_to_user(buf, (void*)(tbuf+p), len)) in read_flush() 1441 char tbuf[20]; in write_flush() local 1444 if (*ppos || count > sizeof(tbuf)-1) in write_flush() 1446 if (copy_from_user(tbuf, buf, count)) in write_flush() 1448 tbuf[count] = 0; in write_flush() 1449 simple_strtoul(tbuf, &ep, 0); in write_flush() 1453 bp = tbuf; in write_flush()
|
/net/tipc/ |
D | bcast.c | 614 struct sk_buff *tbuf; in tipc_bcbearer_send() local 635 tbuf = pskb_copy(buf, GFP_ATOMIC); in tipc_bcbearer_send() 636 if (!tbuf) in tipc_bcbearer_send() 638 tipc_bearer_send(b, tbuf, &b->bcast_addr); in tipc_bcbearer_send() 639 kfree_skb(tbuf); /* Bearer keeps a clone */ in tipc_bcbearer_send()
|
/net/sunrpc/auth_gss/ |
D | svcauth_gss.c | 1334 char tbuf[20]; in write_gssp() local 1338 if (*ppos || count > sizeof(tbuf)-1) in write_gssp() 1340 if (copy_from_user(tbuf, buf, count)) in write_gssp() 1343 tbuf[count] = 0; in write_gssp() 1344 res = kstrtoul(tbuf, 0, &i); in write_gssp() 1363 char tbuf[10]; in read_gssp() local 1371 snprintf(tbuf, sizeof(tbuf), "%d\n", use_gss_proxy(net)); in read_gssp() 1372 len = strlen(tbuf); in read_gssp() 1378 if (copy_to_user(buf, (void *)(tbuf+p), len)) in read_gssp()
|