mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Russ Anderson <rja@sgi.com>
Cc: mingo@elte.hu, tglx@linutronix.de, linux-kernel@vger.kernel.org,
	Jack Steiner <steiner@sgi.com>
Subject: Re: [patch] x86 BIOS interface for partitioning and system serial number on SGI UV
Date: Tue, 5 Aug 2008 18:47:53 +0200	[thread overview]
Message-ID: <20080805164752.GB7426@ucw.cz> (raw)
In-Reply-To: <20080731200002.GC25715@sgi.com>

On Thu 2008-07-31 15:00:02, Russ Anderson wrote:
> x86 BIOS interface for partitioning and system serial number on SGI UV
> 
> Signed-off-by: Russ Anderson <rja@sgi.com>


> +static int licenseID_show(struct seq_file *s, void *p)
> +{
> +	seq_printf(s, "0x%llx\n", sn_partition_serial_number_val());
> +	return 0;
> +}
> +
> +static int licenseID_open(struct inode *inode, struct file *file)
> +{
> +	return single_open(file, licenseID_show, NULL);
> +}
> +
> +static int coherence_id_show(struct seq_file *s, void *p)
> +{
> +	seq_printf(s, "%d\n", partition_coherence_id());
> +
> +	return 0;
> +}
> +
> +static int coherence_id_open(struct inode *inode, struct file *file)
> +{
> +	return single_open(file, coherence_id_show, NULL);
> +}
> +
> +static const struct file_operations proc_partition_id_fops = {
> +	.open		= partition_id_open,
> +	.read		= seq_read,
> +	.llseek		= seq_lseek,
> +	.release	= single_release,
> +};
> +
> +static const struct file_operations proc_system_sn_fops = {
> +	.open		= system_serial_number_open,
> +	.read		= seq_read,
> +	.llseek		= seq_lseek,
> +	.release	= single_release,
> +};
> +
> +static const struct file_operations proc_license_id_fops = {
> +	.open		= licenseID_open,
> +	.read		= seq_read,
> +	.llseek		= seq_lseek,
> +	.release	= single_release,
> +};
> +
> +static const struct file_operations proc_coherence_id_fops = {
> +	.open		= coherence_id_open,
> +	.read		= seq_read,
> +	.llseek		= seq_lseek,
> +	.release	= single_release,
> +};

...serial numbers do not belong to /proc. Plus I'm not sure if stuff
like licenseIDs even belongs to Linux. What is it good for?

							Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

      reply	other threads:[~2008-08-05 16:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-31 20:00 Russ Anderson
2008-08-05 16:47 ` Pavel Machek [this message]

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=20080805164752.GB7426@ucw.cz \
    --to=pavel@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rja@sgi.com \
    --cc=steiner@sgi.com \
    --cc=tglx@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®