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

RTDECL ( bool   ) 

Checks if the caller is the exclusive semaphore owner.

Returns:
true / false accoringly.
Parameters:
RWSem The Read/Write semaphore in question.
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.
Verifies the header version, header size, packet size, and header checksum of the specified IPv4 header.

Returns:
true if valid, false if invalid.
Parameters:
pIpHdr Pointer to the IPv4 header to validate. Network endian (big).
cbHdrMax The max header size, or the max size of what pIpHdr points to if you like. Note that an IPv4 header can be up to 60 bytes.
cbPktMax The max IP packet size, IP header and payload. This doesn't have to be mapped following pIpHdr.
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.
Inserts a node into the AVL-tree.
Returns:
TRUE if inserted. FALSE if node exists in tree.
Parameters:
ppTree Pointer to the AVL-tree root node pointer.
pNode Pointer to the node which is to be added. Find the location of the node (using binary tree algorithm.): LOOP until KAVL_NULL leaf pointer BEGIN Add node pointer pointer to the AVL-stack. IF new-node-key < node key THEN left ELSE right END Fill in leaf node and insert it. Rebalance the tree.
Checks if a year is a leap year or not.

Returns:
true if it's a leap year.

false if it's a common year.

Parameters:
i32Year The year in question.
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.
Verifies the header version, header size, packet size, and header checksum of the specified IPv4 header.

Returns:
true if valid, false if invalid.
Parameters:
pIpHdr Pointer to the IPv4 header to validate. Network endian (big).
cbHdrMax The max header size, or the max size of what pIpHdr points to if you like. Note that an IPv4 header can be up to 60 bytes.
cbPktMax The max IP packet size, IP header and payload. This doesn't have to be mapped following pIpHdr.
Inserts a node into the AVL-tree.
Returns:
TRUE if inserted. FALSE if node exists in tree.
Parameters:
ppTree Pointer to the AVL-tree root node pointer.
pNode Pointer to the node which is to be added. Find the location of the node (using binary tree algorithm.): LOOP until KAVL_NULL leaf pointer BEGIN Add node pointer pointer to the AVL-stack. IF new-node-key < node key THEN left ELSE right END Fill in leaf node and insert it. Rebalance the tree.
Checks if a year is a leap year or not.

Returns:
true if it's a leap year.

false if it's a common year.

Parameters:
i32Year The year in question.
Check if there's work (DPCs on Windows) pending on the current CPU.

Returns:
true if there's pending work on the current CPU, false otherwise.
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.
Verifies the header version, header size, packet size, and header checksum of the specified IPv4 header.

Returns:
true if valid, false if invalid.
Parameters:
pIpHdr Pointer to the IPv4 header to validate. Network endian (big).
cbHdrMax The max header size, or the max size of what pIpHdr points to if you like. Note that an IPv4 header can be up to 60 bytes.
cbPktMax The max IP packet size, IP header and payload. This doesn't have to be mapped following pIpHdr.
Inserts a node into the AVL-tree.
Returns:
TRUE if inserted. FALSE if node exists in tree.
Parameters:
ppTree Pointer to the AVL-tree root node pointer.
pNode Pointer to the node which is to be added. Find the location of the node (using binary tree algorithm.): LOOP until KAVL_NULL leaf pointer BEGIN Add node pointer pointer to the AVL-stack. IF new-node-key < node key THEN left ELSE right END Fill in leaf node and insert it. Rebalance the tree.
Checks if a year is a leap year or not.

Returns:
true if it's a leap year.

false if it's a common year.

Parameters:
i32Year The year in question.
Check if there's work (DPCs on Windows) pending on the current CPU.

Returns:
true if there's pending work on the current CPU, false otherwise.
Todo:
Later. RTDECL(RTTHREAD) RTThreadSelf(void) { return rtThreadGetByNative((RTNATIVETHREAD)current); }
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.
Verifies the header version, header size, packet size, and header checksum of the specified IPv4 header.

Returns:
true if valid, false if invalid.
Parameters:
pIpHdr Pointer to the IPv4 header to validate. Network endian (big).
cbHdrMax The max header size, or the max size of what pIpHdr points to if you like. Note that an IPv4 header can be up to 60 bytes.
cbPktMax The max IP packet size, IP header and payload. This doesn't have to be mapped following pIpHdr.
Inserts a node into the AVL-tree.
Returns:
TRUE if inserted. FALSE if node exists in tree.
Parameters:
ppTree Pointer to the AVL-tree root node pointer.
pNode Pointer to the node which is to be added. Find the location of the node (using binary tree algorithm.): LOOP until KAVL_NULL leaf pointer BEGIN Add node pointer pointer to the AVL-stack. IF new-node-key < node key THEN left ELSE right END Fill in leaf node and insert it. Rebalance the tree.
Checks if a year is a leap year or not.

Returns:
true if it's a leap year.

false if it's a common year.

Parameters:
i32Year The year in question.
Check if there's work (DPCs on Windows) pending on the current CPU.

Returns:
true if there's pending work on the current CPU, false otherwise.
Todo:
Later. RTDECL(RTTHREAD) RTThreadSelf(void) { return rtThreadGetByNative((RTNATIVETHREAD)current); }

Todo:
check this up with hotplugging!

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