Function report |
Source Code:security\keys\keyring.c |
Create Date:2022-07-28 18:17:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Compare the index keys of a pair of objects and determine the bit position* at which they differ - if they differ.
Proto:static int keyring_diff_objects(const void *object, const void *data)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const void * | object | |
| const void * | data |
| 327 | key_a = keyring_ptr_to_key(object) |
| 333 | level = 0 |
| 334 | seg_a = Hash value |
| 335 | seg_b = Hash value |
| 338 | level += Key data retrieved in chunks of this size / 8 |
| 357 | seg_a = Domain of operation |
| 358 | seg_b = Domain of operation |
| 363 | i = size of First few chars of description |
| 368 | seg_a = *(description + i) |
| 369 | seg_b = *(description + i) |
| 370 | If (seg_a ^ seg_b) != 0 Then Go to differ_plus_i |
| 374 | same : |
| 375 | Return -1 |
| 377 | differ_plus_i : |
| 379 | differ : |
| 380 | i = level * 8 + __ffs - find first set bit in word*@word: The word to search* Undefined if no bit exists, so code should check against 0 first. |
| 381 | Return i |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |