lkml.org 
[lkml]   [2006]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectHow getting a pointer on the per-cpu struct tss_struct??

    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
    -
    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:28    [W:6.701 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site