i2c adapter에 대하여 질문 드립니다.
struct i2c_adapter {
struct module *owner;
unsigned int class; /* classes to allow probing for */
const struct i2c_algorithm *algo; /* the algorithm to access the bus */
void *algo_data;
/* data fields that are valid for all devices */
struct rt_mutex bus_lock;
int timeout; /* in jiffies */
int retries;
struct device dev; /* the adapter device */
int nr;
char name[48];
struct completion dev_released;
struct mutex userspace_clients_lock;
struct list_head userspace_clients;
};
지금 드라이버를 만들고 있는데 궁금한게 있어서 질문드립니다.
i2c adapter의 의미가 뭔지;; 잘모르겠어요 client 같은경유 slave 같은데
adapter의 경우는 master 같지가 않아서
그리고 struct mutex userspace_clients_lock을
mutex lock 하게되면 모든 i2c 를 lock 하게되고
제가 만든 드라이버만 작동되게 하는건지 궁금합니다.
댓글 달기