| 82 | } |
| 83 | |
| 84 | void rt_pic_default_name(struct rt_pic *pic) |
| 85 | { |
| 86 | if (pic) |
| 87 | { |
| 88 | #if RT_NAME_MAX > 0 |
| 89 | rt_strncpy(pic->parent.name, "PIC", RT_NAME_MAX - 1); |
| 90 | pic->parent.name[RT_NAME_MAX - 1] = '\0'; |
| 91 | #else |
| 92 | pic->parent.name = "PIC"; |
| 93 | #endif |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | struct rt_pic *rt_pic_dynamic_cast(void *ptr) |
| 98 | { |
no test coverage detected