History

mm: factor out a devm_request_free_mem_region helper

Keep the physical address allocation that hmm_add_device does with the rest of the resource code, and allow future reuse of it without the hmm wrapper.

Christoph Hellwig committed 7 years ago

Commit 00929081 parent 69262213 files · +45 −29Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/ioport.h+2−0
@@ -285,6 +285,8 @@ static inline bool resource_overlaps(struct resource *r1, struct resource *r2) · 284 unmodified lines
285285 return (r1->start <= r2->end && r1->end >= r2->start);
286286 }
287287
288+struct resource *devm_request_free_mem_region(struct device *dev,
289+ struct resource *base, unsigned long size);
288290
289291 #endif /* __ASSEMBLY__ */
290292 #endif /* _LINUX_IOPORT_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t