lkml.org 
[lkml]   [2006]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How getting a pointer on the per-cpu struct tss_struct??
On Mon, 13 Feb 2006, Marko wrote:

> 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

init_tss isn't exported, you would need to do
EXPORT_PER_CPU_SYMBOL(init_tss).

Also a suggestion, you should use __get_cpu_var instead of per_cpu e.g.

struct tss_struct *t;
/* if you don't need cpu variable just preempt_disable */
int cpu = get_cpu();
t = __get_cpu_var(init_tss);
...
put_cpu();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-13 00:56    [W:0.387 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site