Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

RTDECL ( bool   ) 

Overridable function that decides whether assertions executes the panic (breakpoint) or not.

The generic implementation will return true.

Returns:
true if the breakpoint should be hit, false if it should be ignored.
Remarks:
The RTDECL() makes this a bit difficult to override on Windows. So, you'll have ot use RTASSERT_HAVE_SHOULD_PANIC or RTASSERT_HAVE_SHOULD_PANIC_PRIVATE there to control the kind of prototype.
Checks if a sysfs file (or directory, device, symlink, whatever) exists.

Returns:
true / false, errno is preserved.
Parameters:
pszFormat The name format, either absolute or relative to "/sys/".
... The format args.
Checks if a CPU exists in the system or may possibly be hotplugged later.

Returns:
true/false accordingly.
Parameters:
idCpu The identifier of the CPU.
Checks if a CPU is online or not.

Returns:
true/false accordingly.
Parameters:
idCpu The identifier of the CPU.
Checks if a CPU is present in the system.

Returns:
true/false accordingly.
Parameters:
idCpu The identifier of the CPU.
Checks if a path have an extension.

Returns:
true if extension present.

false if no extension.

Parameters:
pszPath Path to check.
Checks if a path includes more than a filename.

Returns:
true if path present.

false if no path.

Parameters:
pszPath Path to check.
Checks if a path starts with the given parent path.

This means that either the path and the parent path matches completely, or that the path is to some file or directory residing in the tree given by the parent directory.

The path comparison takes platform-dependent details into account, see RTPathCompare() for details.

Parameters:
pszPath Path to check, must be an absolute path.
pszParentPath Parent path, must be an absolute path. No trailing directory slash!
Returns:
|true| when pszPath starts with pszParentPath (or when they are identical), or |false| otherwise.
Remarks:
This API doesn't currently handle root directory compares in a manner consistant with the other APIs. RTPathStartsWith(pszSomePath, "/") will not work if pszSomePath isn't "/".
Matches a simple string pattern.

Returns:
true if the string matches the pattern, otherwise false.
Parameters:
pszPattern The pattern. Special chars are '*' and '?', where the asterisk matches zero or more characters and question mark matches exactly one character.
pszString The string to match against the pattern.
Matches a simple string pattern, neither which needs to be zero terminated.

This is identical to RTStrSimplePatternMatch except that you can optionally specify the length of both the pattern and the string. The function will stop when it hits a string terminator or either of the lengths.

Returns:
true if the string matches the pattern, otherwise false.
Parameters:
pszPattern The pattern. Special chars are '*' and '?', where the asterisk matches zero or more characters and question mark matches exactly one character.
cchPattern The pattern length. Pass RTSTR_MAX if you don't know the length and wish to stop at the string terminator.
pszString The string to match against the pattern.
cchString The string length. Pass RTSTR_MAX if you don't know the length and wish to match up to the string terminator.
Matches multiple patterns against a string.

The patterns are separated by the pipe character (|).

Returns:
true if the string matches the pattern, otherwise false.
Parameters:
pszPatterns The patterns.
cchPatterns The lengths of the patterns to use. Pass RTSTR_MAX to stop at the terminator.
pszString The string to match against the pattern.
cchString The string length. Pass RTSTR_MAX stop stop at the terminator.
poffPattern Offset into the patterns string of the patttern that matched. If no match, this will be set to RTSTR_MAX. This is optional, NULL is fine.
Converts a string representation of a number to a 8-bit unsigned number. The base is guessed.

Returns:
8-bit unsigned number on success.

0 on failure.

Parameters:
pszValue Pointer to the string value.
Inserts a string into a unique string space.

Returns:
true on success.

false if the string collieded with an existing string.

Parameters:
pStrSpace The space to insert it into.
pStr The string node.

Todo:
darwin R0 MP

Definition at line 108 of file mp-r0drv-darwin.cpp.

{
    /** @todo darwin R0 MP */
    return RTMpIsCpuPossible(idCpu);
}


Generated by  Doxygen 1.6.0   Back to index