You have to be on their 90 man reserve list on the the day of the trade deadline. So teams basically get 40 spots for their unsigned prospects or players they have the rights too.
Jimmy Schuldt was a NCAA free agent that signed in Vegas he can't play in the post-season but Gusev who just signed his ELC can because he was on VGKs reserve list.