The socket() system call, handled internally by the sys_socket() function in net/socket.c, uses the sock_create() function to determine the protocol family operations related to the specified family.