ankur_r
Posts: 66
Joined: Sat Nov 12, 2016 9:49 am

How to make c code, kernel acceptable example slab.c ?

Sat Feb 24, 2018 10:13 am

Hi All,

I do have the slab allocator code from https://github.com/lucastsa/slab_allocator
Now I want to make this as the part of linux kernel. Can anyone suggest me the way to make it kernel acceptable ? If we compare the slab.cfrom linux kernel https://github.com/torvalds/linux/blob/master/mm/slab.c or https://elixir.bootlin.com/linux/v3.2/source/mm/slab.c file of both places we find massive difference.

Approach must be like that -

1. First we have some concept.
2. Then we translate concept into data structure and there functionality as implementable function operating on those data structures.
3. We then have c file.
4. Now we need to attach that file into kernel acceptable.

My questions are -

What are those differences ?
How we can fill those differences ?

Additionally correct me if I am wrong somewhere in approach defining and understanding..

--Thanks.

Ankur

I

Return to “Beginners”