3 ms·
A stub is an empty implementation. An empty implementation is different from no implementation, where there is no code to execute. It is the difference between
by ryao 1y ago
A stub is an empty implementation. An empty implementation is different from no implementation, where there is no code to execute. It is the difference between writing 0 and writing nothing.
- 1718627440 1y agoIf you care about this distinction, yes. However the LWN post describes how both can be used to implement the same behaviour, that their is no defined special implementation.
- ryao 1y agoI have no idea what LWN post you mean. You can make stubs trap by doing a NULL function pointer dereference, but that does not make NULL function pointer dereferences the same as stubs in general.
- 1718627440 1y agoThe LWN post the linked article is a comment to? I thought that's what we are discussing here? There are several paragraphs about exactly this issue.