{"action":"closed","issue":{"url":"https://api.github.com/repos/lnls-dig/halcs/issues/41","repository_url":"https://api.github.com/repos/lnls-dig/halcs","labels_url":"https://api.github.com/repos/lnls-dig/halcs/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/lnls-dig/halcs/issues/41/comments","events_url":"https://api.github.com/repos/lnls-dig/halcs/issues/41/events","html_url":"https://github.com/lnls-dig/halcs/issues/41","id":177448941,"number":41,"title":"[CLOSED] [dev_mngr] Make dmngr_scan_devs () idempotent","user":{"login":"lerwys","id":1002250,"avatar_url":"https://avatars.githubusercontent.com/u/1002250?v=3","gravatar_id":"","url":"https://api.github.com/users/lerwys","html_url":"https://github.com/lerwys","followers_url":"https://api.github.com/users/lerwys/followers","following_url":"https://api.github.com/users/lerwys/following{/other_user}","gists_url":"https://api.github.com/users/lerwys/gists{/gist_id}","starred_url":"https://api.github.com/users/lerwys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lerwys/subscriptions","organizations_url":"https://api.github.com/users/lerwys/orgs","repos_url":"https://api.github.com/users/lerwys/repos","events_url":"https://api.github.com/users/lerwys/events{/privacy}","received_events_url":"https://api.github.com/users/lerwys/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T15:07:52Z","updated_at":"2016-09-16T15:18:37Z","closed_at":"2016-09-16T15:18:37Z","body":"<a href=\"https://github.com/lerwys\"><img src=\"https://avatars.githubusercontent.com/u/1002250?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [lerwys](https://github.com/lerwys)**\n_Tuesday Oct 21, 2014 at 20:20 GMT_\n_Originally opened as https://github.com/lnls-dig/bpm-sw/issues/41_\n\n----\n\n**Problem:** To implement the \"automatic\" spawn of \"dev_io\" on creation of the \"/dev/fpga%u\" devices, it is necessary to make  dmngr_scan_devs () idenpotent. This means that we could call it within dev_mngr main loop to always update the current set of devices and its states (e.g., RUNNING, STOPPED, KILLED, etc)\r\n\r\n**Solution:** Do a lookup on the dev_info hash table and check if the device is already there.\n"}}
{"actor":{"display_login":"lerwys"}}