View Single Post
  #1  
Old 25th April 2013, 02:33
binpackcz binpackcz is offline
Junior Member
 
Join Date: Apr 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default atomic64 on i386 arch

This could be a basic question.
I am using an atomic64_t variable for a counter in a kernel module. This compiled fine on x86_64 machines but not on i386, so included the atomic64_32.h header :

if defined(__i386__)
#include <asm/atomic64_32.h>
#endif

This is helping to get the module compiled but fails to load the module saying the atomic64_* symbols are not found?
Unknown symbol atomic64_inc
Unknown symbol atomic64_set

What is the correct way to use atomic64_t types in a kernel module?

I tried looking up the exported kernel symbols and it does not list the atomic64* smbols both on i386 and x86_64 archs
cat /proc/kallsyms | grep atomic64_inc

I guess my basic understanding of kernel symbols and loading is poor. Please refer me to any good documentation if any.
Reply With Quote
Sponsored Links