Thread (1 message) 1 message, 1 author, 2011-08-15

Re: [patch v2 13/37] add rxe_verbs.c

From: Bart Van Assche <hidden>
Date: 2011-08-15 16:31:48

On Sun, Jul 24, 2011 at 9:43 PM,  [off-list ref] wrote:
+static ssize_t rxe_show_skb_num(struct device *device,
+				struct device_attribute *attr, char *buf)
+{
+	struct rxe_dev *rxe = container_of(device, struct rxe_dev,
+					   ib_dev.dev);
+
+	return sprintf(buf, "req_in:%d resp_in:%d req_out:%d resp_out:%d\n",
+		atomic_read(&rxe->req_skb_in),
+		atomic_read(&rxe->resp_skb_in),
+		atomic_read(&rxe->req_skb_out),
+		atomic_read(&rxe->resp_skb_out));
+}
The rule for sysfs attributes is one value per file. See also
Documentation/sysfs-rules.txt.

Also, all sysfs changes have to be documented [1]. See also
Documentation/ABI/README for more information.

[1] Greg Kroah-Hartman, http://lkml.org/lkml/2010/10/9/103.

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help