As I know, I can use the "clone" to create a process and a namespace, but the namespace created in this way has no name. For example, I create a network namespace with the parameter: CLONE_NEWNS, but in the command "ip netns list", there is no namespace list because the namespace created has no name. But I can use the command "ip netns add xxx" to create a namespace with the name "xxx".
I wonder how to create a namespace with name using system call "clone".