From: Michael Hunold <hunold@convergence.de>
To: linux-kernel@vger.kernel.org
Subject: Problems adding sysfs support to dvb subsystem
Date: Mon, 12 Apr 2004 22:34:35 +0200 [thread overview]
Message-ID: <407AFD5B.8010502@convergence.de> (raw)
Hello all,
I'm currently trying to add proper sysfs support to the dvb subsystem,
but I'm stuck because I don't know if I'm on the right way. 8-(
From the docs and existing drivers I read so far I concluded that
adding a new class via class_register(&dvb_class) is the way to go.
With this I get:
/sys/class/dvb/
Now there can be several dvb adapters present in the system, each of
this adapter can have several "subsystems" (video decoder, audio
decoder, frontend ("tuner"), ...)
New adapters register themselves via dvb_register_adapter() and if this
was succesfull, they register their subsystems via dvb_register_device().
What I'd like to have is something like this, so I can add attributes to
the frontend for example:
/sys/class/dvb/adapter0/frontend0/
I wasn't able to find a driver that provides this simple "hierarchical"
order, so I did some experiments with little luck.
Creating this hierarchical order manually (like for "devfs") didn't
work, I get
> find: /sys/class/dvb/adapter0/frontend0: No such file or directory
errors upon access:
> sprintf((void*)&dvbdev->class_device.class_id, "adapter%d/%s%d",
adap->num, dnames[type], id);
> class_device_register(&dvbdev->class_device);
I then tried to find a way to first use class_device_register() with
adapter0 (which works of course), and then with class_device_register()
again with frontend0, but obviously I cannot connect these two
instances, because adapter doesn't have a "struct device" where I can
point the class_device.dev entry from frontend0 to... 8-(
I'd really appreciate if somebody could give me some design hints or
point me to some documentation that would help me out.
Thanks!
Michael.
next reply other threads:[~2004-04-12 20:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-12 20:34 Michael Hunold [this message]
2004-04-12 21:21 ` Problems adding sysfs support to dvb subsystem Stephen Hemminger
2004-04-12 21:42 ` Greg KH
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=407AFD5B.8010502@convergence.de \
--to=hunold@convergence.de \
--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.