All of lore.kernel.org
 help / color / mirror / Atom feed
From: dmitry.torokhov@gmail.com (Dmitry Torokhov)
To: lm-sensors@vger.kernel.org
Subject: [RFC PATCH 2.6.12-rc3] dynamic driver sysfs callbacks and RFC on
Date: Thu, 19 May 2005 06:25:55 +0000	[thread overview]
Message-ID: <d120d50005042810127b824d9f@mail.gmail.com> (raw)
In-Reply-To: <2538186705042422366584aff4@mail.gmail.com>

On 4/28/05, Yani Ioannou <yani.ioannou@gmail.com> wrote:
> On 4/28/05, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
> > ...
> > err = sysfs_create_group_array(&i8k_device->dev.kobj, &i8k_fan_attr_array, num);
> >
> 
> Yes attribute groups would certainly aid bmcsensors in terms of
> getting rid of the static callbacks and replacing them with a few,
> however in using an array it still has the limitation that bmcsensors
> would have to set a limit on the number of sensors that it can see,
> and in doing so allocate space that likely will never be used (most
> ipmi bmcs have access to 10-40 sensors, but the odd few on high end
> servers from people I've been in contact with have at least 60, and so
> the current limit is 100).

Number of elements in an array is specified at creation time (3rd
argument to sysfs_create_group_array) so you do not have to set an
arbitrary limit. Interrogate your device during ->probe() and adjust
the limit accordingly.

Or maybe I still miss something?

-- 
Dmitry

  parent reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:25 [RFC PATCH 2.6.12-rc3] dynamic driver sysfs callbacks and RFC on Yani Ioannou
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Dmitry Torokhov
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Grant Coady
2005-05-19  6:25 ` Dmitry Torokhov [this message]
2005-05-19  6:25 ` Dmitry Torokhov
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Grant Coady
2005-05-19  6:25 ` Grant Coady
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Dmitry Torokhov
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Dmitry Torokhov
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Greg KH
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` Yani Ioannou
2005-05-19  6:25 ` [RFC PATCH 2.6.12-rc3] dynamic driver sysfs callbacks and RFC Jean Delvare
2005-05-19  6:25 ` [RFC PATCH 2.6.12-rc3] dynamic driver sysfs callbacks and RFC on Yani Ioannou
2005-05-19  6:25 ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d120d50005042810127b824d9f@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.