On Tue, Mar 08, 2005 at 01:55:33PM -0500, Wen Xiong wrote: > +static ssize_t jsm_driver_boards_show(struct device_driver *ddp, char *buf) > +{ > + int adapter_count = 0; > + adapter_count = jsm_total_boardnum(); > + return snprintf(buf, PAGE_SIZE, "%d\n", adapter_count); > +} > +static DRIVER_ATTR(boards, S_IRUSR, jsm_driver_boards_show, NULL);
Why is this file even needed? You can just look at the number of sysfs directories attached to this device, right? thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/