From: Jerry Stralko <gerb.stralko@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Creating sysfs class for all my misc devices
Date: Sun, 22 Jun 2014 14:03:15 -0400 [thread overview]
Message-ID: <53A71A63.2070207@gmail.com> (raw)
I'm running into a road block trying to create a sysfs class for all my
misc devices I've created. I currently have a few (3-5) misc devices
that I want to group together in a class.
I've registered my misc devices, but I'm unsure how to associate them
with my new class I created. I want all my misc devices to be
associated with /sys/class/logger class.
I've created the class via:
logger_class = class_create(THIS_MODULE, "logger");
ret = PTR_ERR(logger_class);
if (IS_ERR(logger_class))
goto out;
But after the call to misc_register i'm not sure how to proceed. Is
this even possible or I'm I totally off on this. Or can a device only
be registered to at most one class and since its a misc device its
already associated with the misc class?
I've searched the linux source tree and haven't found anything.
Any help or pointers on this would be greatly appreciated.
Thanks,
reply other threads:[~2014-06-22 18:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=53A71A63.2070207@gmail.com \
--to=gerb.stralko@gmail.com \
--cc=linux-kernel@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.