Go, Kernel, Unsafe, Golang.
method, garbage collection may happen before the data is read which will lead to segmentation faults. To avoid this, we need to call unsafe.Pointer while passing it as the argument to the function itself. When the go runtime sees the unsafe pointer being passed in the same function call, it doesn’t