added get attr to most generic search/cmp functions...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>