You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nshandle_linux.go
    path of file: ./repos/kubeedge/vendor/github.com/vishvananda/netns
    
    the code of the file until where you have to start completion: package netns

import (
	"fmt"

	"golang.org/x/sys/unix"
)

// NsH
    
func (ns NsHandle) Equal(other NsHandle) bool {
	if ns == other {
		return true
	}
	var s1, s2 unix.Stat_t
	if err := unix.Fstat(int(ns), &s1); err != nil {
		return false
	}
	if err := unix.Fstat(int(other), &s2); err != nil {
		return false
	}
	return (s1.Dev == s2.Dev) && (s1.Ino == s2.Ino)
}