explain trigger_plugin_hook

could u please explain me what does this function will do and how this function process

'return trigger_plugin_hook('registeruser:validate:username', 'all', array('username' => $username), $result);'

where this is define 'registeruser:validate:username'