{"action":"created","comment":{"url":"https://api.github.com/repos/sondrele/thesis/pulls/comments/30884194","id":30884194,"diff_hunk":"@@ -0,0 +1,179 @@\n+\\subsection{Porting GPIO Interrupt Driver}\n+\n+This section considers a case study of an issue discovered when porting the GPIO interrupt driver from SiliconLabs to Rust.\n+The issue was discoverd when annotating the \\texttt{unsafe} blocks for referencing mutable global state and gives an example of the awareness the inclusion of the \\texttt{unsafe} keyword provides.\n+\n+\\subsubsection{Presenting the Problem}\n+\n+The driver lets the user registers a callback function to be called when an interrupt occures at a given gpio pin.\n+It is implemented by a global mutable list of 16 function pointers, a register function to assign functions to indices of the list corresponding to GPIO pins and a dispatch mechanisms which calls the correct functions when an interrupt occures.","path":"implementation/gpioint.tex","position":9,"original_position":9,"commit_id":"c8010bb38cdf9222a92caa3dd4881e428750f904","original_commit_id":"c8010bb38cdf9222a92caa3dd4881e428750f904","user":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"body":"> ...interrupt ~~occures~~ `occurs`.","created_at":"2015-05-22T10:18:54Z","updated_at":"2015-05-22T10:18:54Z","html_url":"https://github.com/sondrele/thesis/pull/27#discussion_r30884194","pull_request_url":"https://api.github.com/repos/sondrele/thesis/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/comments/30884194"},"html":{"href":"https://github.com/sondrele/thesis/pull/27#discussion_r30884194"},"pull_request":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/sondrele/thesis/pulls/27","id":35724152,"html_url":"https://github.com/sondrele/thesis/pull/27","diff_url":"https://github.com/sondrele/thesis/pull/27.diff","patch_url":"https://github.com/sondrele/thesis/pull/27.patch","issue_url":"https://api.github.com/repos/sondrele/thesis/issues/27","number":27,"state":"open","locked":false,"title":"Added section about the Rust GPIOINT port.","user":{"login":"havardh","id":451855,"avatar_url":"https://avatars.githubusercontent.com/u/451855?v=3","gravatar_id":"","url":"https://api.github.com/users/havardh","html_url":"https://github.com/havardh","followers_url":"https://api.github.com/users/havardh/followers","following_url":"https://api.github.com/users/havardh/following{/other_user}","gists_url":"https://api.github.com/users/havardh/gists{/gist_id}","starred_url":"https://api.github.com/users/havardh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havardh/subscriptions","organizations_url":"https://api.github.com/users/havardh/orgs","repos_url":"https://api.github.com/users/havardh/repos","events_url":"https://api.github.com/users/havardh/events{/privacy}","received_events_url":"https://api.github.com/users/havardh/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-19T12:22:52Z","updated_at":"2015-05-22T10:18:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5e23171afa321f39585f751a16638b672cbacc5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sondrele/thesis/pulls/27/commits","review_comments_url":"https://api.github.com/repos/sondrele/thesis/pulls/27/comments","review_comment_url":"https://api.github.com/repos/sondrele/thesis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sondrele/thesis/issues/27/comments","statuses_url":"https://api.github.com/repos/sondrele/thesis/statuses/c8010bb38cdf9222a92caa3dd4881e428750f904","head":{"label":"sondrele:gpioint","ref":"gpioint","sha":"c8010bb38cdf9222a92caa3dd4881e428750f904","user":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"repo":{"id":29209107,"name":"thesis","full_name":"sondrele/thesis","owner":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sondrele/thesis","description":"","fork":false,"url":"https://api.github.com/repos/sondrele/thesis","forks_url":"https://api.github.com/repos/sondrele/thesis/forks","keys_url":"https://api.github.com/repos/sondrele/thesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sondrele/thesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sondrele/thesis/teams","hooks_url":"https://api.github.com/repos/sondrele/thesis/hooks","issue_events_url":"https://api.github.com/repos/sondrele/thesis/issues/events{/number}","events_url":"https://api.github.com/repos/sondrele/thesis/events","assignees_url":"https://api.github.com/repos/sondrele/thesis/assignees{/user}","branches_url":"https://api.github.com/repos/sondrele/thesis/branches{/branch}","tags_url":"https://api.github.com/repos/sondrele/thesis/tags","blobs_url":"https://api.github.com/repos/sondrele/thesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sondrele/thesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sondrele/thesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/sondrele/thesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sondrele/thesis/statuses/{sha}","languages_url":"https://api.github.com/repos/sondrele/thesis/languages","stargazers_url":"https://api.github.com/repos/sondrele/thesis/stargazers","contributors_url":"https://api.github.com/repos/sondrele/thesis/contributors","subscribers_url":"https://api.github.com/repos/sondrele/thesis/subscribers","subscription_url":"https://api.github.com/repos/sondrele/thesis/subscription","commits_url":"https://api.github.com/repos/sondrele/thesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/sondrele/thesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/sondrele/thesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/sondrele/thesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/sondrele/thesis/contents/{+path}","compare_url":"https://api.github.com/repos/sondrele/thesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sondrele/thesis/merges","archive_url":"https://api.github.com/repos/sondrele/thesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sondrele/thesis/downloads","issues_url":"https://api.github.com/repos/sondrele/thesis/issues{/number}","pulls_url":"https://api.github.com/repos/sondrele/thesis/pulls{/number}","milestones_url":"https://api.github.com/repos/sondrele/thesis/milestones{/number}","notifications_url":"https://api.github.com/repos/sondrele/thesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sondrele/thesis/labels{/name}","releases_url":"https://api.github.com/repos/sondrele/thesis/releases{/id}","created_at":"2015-01-13T20:20:06Z","updated_at":"2015-04-29T14:20:58Z","pushed_at":"2015-05-22T10:07:39Z","git_url":"git://github.com/sondrele/thesis.git","ssh_url":"git@github.com:sondrele/thesis.git","clone_url":"https://github.com/sondrele/thesis.git","svn_url":"https://github.com/sondrele/thesis","homepage":null,"size":2236,"stargazers_count":0,"watchers_count":0,"language":"TeX","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"sondrele:master","ref":"master","sha":"bb16df38caf6fb76aac7465a56c34544eecbbb57","user":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"repo":{"id":29209107,"name":"thesis","full_name":"sondrele/thesis","owner":{"login":"sondrele","id":1423083,"avatar_url":"https://avatars.githubusercontent.com/u/1423083?v=3","gravatar_id":"","url":"https://api.github.com/users/sondrele","html_url":"https://github.com/sondrele","followers_url":"https://api.github.com/users/sondrele/followers","following_url":"https://api.github.com/users/sondrele/following{/other_user}","gists_url":"https://api.github.com/users/sondrele/gists{/gist_id}","starred_url":"https://api.github.com/users/sondrele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondrele/subscriptions","organizations_url":"https://api.github.com/users/sondrele/orgs","repos_url":"https://api.github.com/users/sondrele/repos","events_url":"https://api.github.com/users/sondrele/events{/privacy}","received_events_url":"https://api.github.com/users/sondrele/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sondrele/thesis","description":"","fork":false,"url":"https://api.github.com/repos/sondrele/thesis","forks_url":"https://api.github.com/repos/sondrele/thesis/forks","keys_url":"https://api.github.com/repos/sondrele/thesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sondrele/thesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sondrele/thesis/teams","hooks_url":"https://api.github.com/repos/sondrele/thesis/hooks","issue_events_url":"https://api.github.com/repos/sondrele/thesis/issues/events{/number}","events_url":"https://api.github.com/repos/sondrele/thesis/events","assignees_url":"https://api.github.com/repos/sondrele/thesis/assignees{/user}","branches_url":"https://api.github.com/repos/sondrele/thesis/branches{/branch}","tags_url":"https://api.github.com/repos/sondrele/thesis/tags","blobs_url":"https://api.github.com/repos/sondrele/thesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sondrele/thesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sondrele/thesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/sondrele/thesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sondrele/thesis/statuses/{sha}","languages_url":"https://api.github.com/repos/sondrele/thesis/languages","stargazers_url":"https://api.github.com/repos/sondrele/thesis/stargazers","contributors_url":"https://api.github.com/repos/sondrele/thesis/contributors","subscribers_url":"https://api.github.com/repos/sondrele/thesis/subscribers","subscription_url":"https://api.github.com/repos/sondrele/thesis/subscription","commits_url":"https://api.github.com/repos/sondrele/thesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/sondrele/thesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/sondrele/thesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/sondrele/thesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/sondrele/thesis/contents/{+path}","compare_url":"https://api.github.com/repos/sondrele/thesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sondrele/thesis/merges","archive_url":"https://api.github.com/repos/sondrele/thesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sondrele/thesis/downloads","issues_url":"https://api.github.com/repos/sondrele/thesis/issues{/number}","pulls_url":"https://api.github.com/repos/sondrele/thesis/pulls{/number}","milestones_url":"https://api.github.com/repos/sondrele/thesis/milestones{/number}","notifications_url":"https://api.github.com/repos/sondrele/thesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sondrele/thesis/labels{/name}","releases_url":"https://api.github.com/repos/sondrele/thesis/releases{/id}","created_at":"2015-01-13T20:20:06Z","updated_at":"2015-04-29T14:20:58Z","pushed_at":"2015-05-22T10:07:39Z","git_url":"git://github.com/sondrele/thesis.git","ssh_url":"git@github.com:sondrele/thesis.git","clone_url":"https://github.com/sondrele/thesis.git","svn_url":"https://github.com/sondrele/thesis","homepage":null,"size":2236,"stargazers_count":0,"watchers_count":0,"language":"TeX","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/27"},"html":{"href":"https://github.com/sondrele/thesis/pull/27"},"issue":{"href":"https://api.github.com/repos/sondrele/thesis/issues/27"},"comments":{"href":"https://api.github.com/repos/sondrele/thesis/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sondrele/thesis/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/sondrele/thesis/statuses/c8010bb38cdf9222a92caa3dd4881e428750f904"}}}}