The kernel assigns a unique process identifier(PID) to the child process. This PID is different from the parent's PID and is used to uniquely identify the process within the system. The function get_next_pid allocates a unique PID for the new process. This function maintains a counter or a more complex allocation scheme to ensure that each process gets a unique identifier.