- Timestamp:
- Jul 15, 2011 2:42:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r37982 r37983 413 413 vboxNetFltSolarisCtfGetMemberOffset(ctf_file_t *pCtfFile, const char *pszStruct, const char *pszMember, int *pOffset) 414 414 { 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 415 AssertReturn(pCtfFile, VERR_INVALID_PARAMETER); 416 AssertReturn(pszStruct, VERR_INVALID_PARAMETER); 417 AssertReturn(pszMember, VERR_INVALID_PARAMETER); 418 AssertReturn(pOffset, VERR_INVALID_PARAMETER); 419 420 ctf_id_t TypeId = ctf_lookup_by_name(pCtfFile, pszStruct); 421 if (TypeId != CTF_ERR) 422 { 423 ctf_membinfo_t MemberInfo; 424 bzero(&MemberInfo, sizeof(MemberInfo)); 425 if (ctf_member_info(pCtfFile, TypeId, pszMember, &MemberInfo) != CTF_ERR) 426 { 427 *pOffset = (MemberInfo.ctm_offset >> 3); 428 LogRel((DEVICE_NAME ":%s::%s at %d\n", pszStruct, pszMember, *pOffset)); 429 return VINF_SUCCESS; 430 } 431 else 432 LogRel((DEVICE_NAME ":ctf_member_info failed for struct %s member %s\n", pszStruct, pszMember)); 433 } 434 else 435 LogRel((DEVICE_NAME ":ctf_lookup_by_name failed for struct %s\n", pszStruct)); 436 437 return VERR_NOT_FOUND; 438 438 } 439 439
Note:
See TracChangeset
for help on using the changeset viewer.