Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1479406
| From | Randy Dunlap <rdunlap@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] genirq: Machine-parsable version of /proc/interrupts |
| Date | 2016-09-08 20:00 +0200 |
| Message-ID | <sfbMe-o9-13@gated-at.bofh.it> (permalink) |
| References | <rZbwU-32n-85@gated-at.bofh.it> <sfbsS-hA-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/08/16 10:34, Craig Gallek wrote:
> From: Craig Gallek <kraig@google.com>
>
> Add struct kobject to struct irq_desc to allow for easy export
> to sysfs. This allows for much simpler userspace-parsing of
> the information contained in struct irq_desc.
Please give example(s) of the sysfs (output) format.
Also add the interface info to Documentation/ABI/.
> +static void irq_sysfs_add(int irq, struct irq_desc *desc)
> +{
> + if (irq_kobj_base) {
> + if (kobject_add(&desc->kobj, irq_kobj_base, "%d", irq))
> + pr_warn("Fail to add kobject for irq %d\n", irq);
Failed
> + }
> +}
Thanks.
--
~Randy
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] genirq: Machine-parsable version of /proc/interrupts Craig Gallek <kraigatgoog@gmail.com> - 2016-09-08 19:40 +0200
Re: [PATCH v2] genirq: Machine-parsable version of /proc/interrupts Randy Dunlap <rdunlap@infradead.org> - 2016-09-08 20:00 +0200
[PATCH v3] genirq: Machine-parsable version of /proc/interrupts Craig Gallek <kraigatgoog@gmail.com> - 2016-09-08 22:30 +0200
Re: [PATCH v3] genirq: Machine-parsable version of /proc/interrupts Randy Dunlap <rdunlap@infradead.org> - 2016-09-09 00:10 +0200
Re: [PATCH v3] genirq: Machine-parsable version of /proc/interrupts Craig Gallek <kraigatgoog@gmail.com> - 2016-09-09 00:20 +0200
Re: [PATCH v3] genirq: Machine-parsable version of /proc/interrupts Thomas Gleixner <tglx@linutronix.de> - 2016-09-09 14:50 +0200
csiph-web