mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marko <letterdrop@gmx.de>
To: linux-kernel@vger.kernel.org
Subject: How getting a pointer on the per-cpu struct tss_struct??
Date: Mon, 13 Feb 2006 00:27:06 +0100	[thread overview]
Message-ID: <20060213002706.50e5289c.letterdrop@gmx.de> (raw)


Hello,

may anyone tell me where I'm wrong???


What I thought to have found:

I want to access the per-cpu IO Permission Bitmap. Therefore, I try to
get a pointer on the per-cpu struct tss_struct. I found an array of typ
'struct tss_struct' named 'init_tss' (declared in asm/processor.h with
'DECLARE_PER_CPU(struct tss_struct, init_tss);').

So I should be able to get a pointer on the struct tss_struct of the
current cpu, by using the following code:

	int cpu = get_cpu();
	struct tss_struct * t = &per_cpu(init_tss, cpu);

But when I try to compile this, I get the warning:

	*** Warning: "per_cpu__init_tss" [/home/..../module.ko]
	undefined!

and according to this warning an error, when I try to load the module:

	insmod: error inserting 'module.ko': -1 Unknown symbol in module


(I'm using gcc4.0.2 and kernel 2.6.14.2)


Where's my problem??

Thanks,



Marko Euth

             reply	other threads:[~2006-02-12 23:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-12 23:27 Marko [this message]
2006-02-12 23:58 ` Zwane Mwaikambo
2006-02-13  0:14   ` Marko
2006-02-13  6:13     ` Zwane Mwaikambo
2006-02-13  7:29     ` Arjan van de Ven

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=20060213002706.50e5289c.letterdrop@gmx.de \
    --to=letterdrop@gmx.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 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®