HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   HOWTO-Related Questions (
-   -   atomic64 on i386 arch (

binpackcz 25th April 2013 03:33

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>

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.

All times are GMT +2. The time now is 13:42.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.