-
-
Notifications
You must be signed in to change notification settings - Fork 10
Using NeKernel: make_ptr: OwnPtr.h
Amlal El Mahrouss edited this page Mar 8, 2026
·
1 revision
template <typename T, typename... Args>
inline OwnPtr<T> make_ptr(Args&&... args) {
OwnPtr<T> ret;
ret.template New<Args...>(forward(args)...);
return ret;
}This serves as an helper to construct an OwnPtr object, which is used to manipulate RAII objects inside the kernel.
Please read this: https://docs.kernel.org/process/coding-assistants.html
If it can't run on your machine, you can't PR it. Please actually test your code before submitting!
They will be closed after a week. Inactive PRs stalls everything.
Cheers. Amlal