Skip to contentSkip to conversation

remove ptrinfo

PATCH New Manfred Spraul 1 participant 1 message Sep 1, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove ptrinfo

Quoted 3 lines · Christoph

it's defined in slab.c but not used anywhere

Correct: ptrinfo is a debug-only function. Intended to be called from kgdb stubs or for local printk debugging tests. I think gdb even allows to call functions while it's stopped on a breakpoint.

I added it as an example what slab knows about it's objects - I have such test functions in my local files, but most developers don't know how slab tracks objects. It's reference code - I'm not sure if it belongs into the kernel or not.

--
Manfred