def scanAllProcessesForMapping(searchPortion, isExactMatch=False, ignoreCase=False):
pids = getAllRunningPids()<EOL>mappingResults = [scanProcessForMapping(pid, searchPortion, isExactMatch, ignoreCase) for pid in pids]<EOL>ret = {}<EOL>for i in range(len(pids)):<EOL><INDENT>if mappingResults[i] is not None:<EOL><INDENT>ret[pids[i]] = mappingResults[i]<EOL><DEDENT><DEDENT>return ret<EOL>
scanAllProcessesForMapping - Scans all processes on the system for a given search pattern.

    @param searchPortion <str> - A mapping for which to search, example: libc or python or libz.so.1. Give empty string to return all mappings.
    @param isExactMatch <bool> Default False - If match should be exact, otherwise a partial match is performed.
    @param ignoreCase <bool> Default False - If True, search will be performed case-insensitively

@return - <dict> - A dictionary of pid -> mappingResults for each pid that matched the search pattern. For format of "mappingResults", @see scanProcessForMapping