[lkml]   [2006]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 21/22] ehca main file


> What is ehca_show_flightrecorder() trying to do that snprintf() is
> not fast enough? If you need to pass a binary structure back to
> userspace (with a kernel address in it??) then sysfs is not the right
> place to put it. Look at debugfs; or relayfs might make the most
> sense for your flightrecorder stuff.

I agree debugfs or relayfs would be better suited. Of course as the
driver matures this form of debug is probably not required at all.

> +#include "hcp_sense.h" /* TODO: later via hipz_* header file */
> +#include "hcp_if.h" /* TODO: later via hipz_* header file */

I count 88 TODOs in the driver, it would be nice to get rid of some of
them like the two above, so we can concentrate on the important TODOs :)

> +#define EHCA_RESOURCE_ATTR_H(name) \
> +static ssize_t ehca_show_##name(struct device *dev, \
> + struct device_attribute *attr, \
> + char *buf)
> +#else
> +#define EHCA_RESOURCE_ATTR_H(name) \
> +static ssize_t ehca_show_##name(struct device *dev, \
> + char *buf)
> +#endif

No need for kernel version ifdefs.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-02-20 16:26    [W:0.180 / U:0.360 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site