On Sun, Jul 24, 2011 at 9:43 PM, <[email protected]> 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
