Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9083079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:41:58+00:00 2026-06-16T20:41:58+00:00

I have developed a Loadable Kernel Module (LKM) for android. I use kzalloc :

  • 0

I have developed a Loadable Kernel Module (LKM) for android.

I use kzalloc:

device = kzalloc(ndevices * sizeof (*device), GFP_KERNEL);

and it worked for a while, but after an update of my android (since 4.1 it’s no more working), I got following error on insmod:

insmod module.ko
insmod: init_module 'module.ko' failed (No such file or directory)

DMESG says:
Unknown symbol malloc_sizes (err 0)

This has something to do with inux/slab.h, that’s what I know.

I googled for days over days and I’m very frustrated not finding the solution to fix this problem and get the LKM working again.

Can maybe anyone help me out?

CONCLUSION:

The accepted answer is correct: Try to remove the slab.h and define the missing methods as “extern”. Or in your kernel-source, use “make menuconfig” and change SLAB to SLUB (see first comment in answer for more details).

The remaining problems are handled in a new, more specific topic:

Interchangeability of compiled LKMs

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:41:59+00:00Added an answer on June 16, 2026 at 8:41 pm

    So you need to tell us the kernel versions. But looking up linux kernel versions and memory allocators, it looks like the default mainline kernel switched from SLAB to SLUB.

    By default, Linux kernel used a SLAB Allocation system until version
    2.6.23, when SLUB allocation became the default.

    Unless you’re writing a module or something that depends on SLAB (which is very highly unlikely), then you probably don’t want to be including linux/slab.h headers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an iOS App and tested it on iOS6 device. While testing,
I have developed an app that in testing has worked fine but when it
I have developed many web applications in ASP.NET in which I have make use
I have developed simplest app, which implements Android in-app billing v.3 Testing it on
I have developed android phonegap app.I am recording the audio through phonegap api and
I have developed an enterprise app and its ready to use for my client.
I have developed android application named VMS.I have to get messages from the webservice.The
I have developed the Google map application in android using Eclipse and AVD. Is
I have developed a Android application. I would like to keep it in my
I have developed a specialized Android application whose operation relies partly on files that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.