*参照元 [#za7faa12] #backlinks *説明 [#u2ab6d30] -パス: [[linux-2.6.33/drivers/char/agp/generic.c]] -FIXME: これは何? --説明 **引数 [#g4d59966] -size_t page_count -- -int type -- **返り値 [#f8935cdb] -struct agp_memory * -- **参考 [#nc3d83c2] *実装 [#e5404899] struct agp_memory *agp_generic_alloc_user(size_t page_count, int type) { struct agp_memory *new; int i; int pages; pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE; new = agp_create_user_memory(page_count); if (new == NULL) return NULL; - --[[linux-2.6.33/ENTRIES_PER_PAGE]] - --[[linux-2.6.33/agp_create_user_memory()]] for (i = 0; i < page_count; i++) new->pages[i] = 0; new->page_count = 0; new->type = type; new->num_scratch_pages = pages; return new; } EXPORT_SYMBOL(agp_generic_alloc_user); -モジュールのライセンスに関係なくシンボルを公開する。 --[[linux-2.6.33/EXPORT_SYMBOL()]] *コメント [#q759882b]