* Fetch a node pointer from a slot in another node. */
| 198 | * Fetch a node pointer from a slot in another node. |
| 199 | */ |
| 200 | static __inline struct vm_radix_node * |
| 201 | vm_radix_node_load(smrnode_t *p, enum vm_radix_access access) |
| 202 | { |
| 203 | |
| 204 | switch (access) { |
| 205 | case UNSERIALIZED: |
| 206 | return (smr_unserialized_load(p, true)); |
| 207 | case LOCKED: |
| 208 | return (smr_serialized_load(p, true)); |
| 209 | case SMR: |
| 210 | return (smr_entered_load(p, vm_radix_smr)); |
| 211 | } |
| 212 | __assert_unreachable(); |
| 213 | } |
| 214 | |
| 215 | static __inline void |
| 216 | vm_radix_node_store(smrnode_t *p, struct vm_radix_node *v, |
no outgoing calls
no test coverage detected