elsewhere and it is defined in mod_magnet, so you end up with a SIGSEGV. So rename buffer_* funcs to ls_buffer_*.