*参照元 [#m62d0c0b] #backlinks *説明 [#x17af451] -パス: [[linux-2.6.25/include/linux/list.h]] -これは何? --説明 **引数 [#vf05a208] -struct list_head * prev -- --[[linux-2.6.25/list_head]] -struct list_head * next -- **返り値 [#x61ee993] -なし **参考 [#v4d1ffd3] *実装 [#jfd0f73e] /* * Delete a list entry by making the prev/next entries * point to each other. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static inline void __list_del(struct list_head * prev, struct list_head * next) { next->prev = prev; prev->next = next; -削除対象の要素の前後のポインタを接続する。 仮に prev と next の間にあるリストの要素(削除しようとしている要素) の名前を self とすると、 | prev | -(next)-> | self | | | | | | | <-(prev)- | next | を | prev | ----------(next)-----------> | | | | <-----------(prev)---------- | next | | self | | | のように変更して、self を参照できないようにする。 } *コメント [#qbe14560] #comment