Greg KH wrote: >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 > > > We can find out the number of adapters in several ways in linux. But we are not sure the end customer really know how to find out. Anyway, attatched the new patch4.jasmine for you. Thanks, wendy