[問題] 如何從port number得知對應的service?

看板AndroidDev作者 (購物慾好強)時間14年前 (2012/04/16 18:52), 編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
從userspace可以利用getserbyport得到對應的service為何 想請教如果是在kernel 有port number 如何得到對應的sevice呢? 謝謝各位 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.147.15.66

04/17 00:59, , 1F
我是記得linux kernel並沒有維護port to pid
04/17 00:59, 1F

04/17 00:59, , 2F
這個是shell層自己自己搞一張表的(沒記錯的話)
04/17 00:59, 2F
文章代碼(AID): #1FY_dRFL (AndroidDev)