lock_bitmap man page
lock_bitmap — Locks the memory used by a bitmap. Allegro game programming library.
void lock_bitmap(BITMAP *bitmap);
Under DOS, locks all the memory used by a bitmap. You don't normally need to call this function unless you are doing very weird things in your program.