Get functions for credentials using mmap