lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <09def1ca-a6bd-3286-7817-a607a23c5643@infradead.org>
Date:   Thu, 8 Sep 2016 10:57:21 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     Craig Gallek <kraigatgoog@...il.com>,
        Thomas Gleixner <tglx@...utronix.de>
Cc:     David Decotigny <decot@...gle.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] genirq: Machine-parsable version of /proc/interrupts

On 09/08/16 10:34, Craig Gallek wrote:
> From: Craig Gallek <kraig@...gle.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ