*参照元 [#pc8de9f8] #backlinks *説明 [#se4d0dcb] -パス: [[linux-4.4.1/drivers/clk/clkdev.c]] -FIXME: これは何? --説明 **引数 [#f32728fc] -const char *dev_id -- -const char *con_id -- **返り値 [#jffa0d22] -struct clk * -- --[[linux-4.4.1/clk]] **参考 [#ffe95c61] *実装 [#x24151d7] struct clk *clk_get_sys(const char *dev_id, const char *con_id) { struct clk_lookup *cl; struct clk *clk = NULL; - --[[linux-4.4.1/clk_lookup]] --[[linux-4.4.1/clk]] mutex_lock(&clocks_mutex); - --[[linux-4.4.1/mutex_lock()]] --[[linux-4.4.1/clocks_mutex(global)]] cl = clk_find(dev_id, con_id); if (!cl) goto out; - --[[linux-4.4.1/clk_find()]] clk = __clk_create_clk(cl->clk_hw, dev_id, con_id); if (IS_ERR(clk)) goto out; - --[[linux-4.4.1/__clk_create_clk()]] --[[linux-4.4.1/IS_ERR()]] if (!__clk_get(clk)) { __clk_free_clk(clk); cl = NULL; goto out; } - --[[linux-4.4.1/__clk_get()]] --[[linux-4.4.1/__clk_free_clk()]] out: mutex_unlock(&clocks_mutex); return cl ? clk : ERR_PTR(-ENOENT); - --[[linux-4.4.1/mutex_unlock()]] --[[linux-4.4.1/ERR_PTR()]] } EXPORT_SYMBOL(clk_get_sys); - --[[linux-4.4.1/EXPORT_SYMBOL()]] *コメント [#m7271ae4]