Locking around kmem_cache_destroy


 
Thread Tools Search this Thread
Operating Systems Linux Locking around kmem_cache_destroy
# 1  
Old 03-20-2008
Locking around kmem_cache_destroy

Hi There,

I want to make sure that kmem_cache_alloc is not called concurrently with kmem_cache_destroy on module exit and I want be able to use GFP_KERNEL for the kmem_cache_alloc calls.

Would a read/write lock be good fro this purpose or is there another method I should be using?

Regards,
Brendan
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Locking Down SFTP

Hi List, I'm sure this has been done before and there must be several ways to skin the cat on this topic. What I am trying to achieve is set up user accounts for use with SFTP based on the standard OpenSSH protocol. And I want to be able to lock them down so that they cannot browse outside of... (2 Replies)
Discussion started by: landossa
2 Replies

2. UNIX for Advanced & Expert Users

File locking

i am working on a device runnin on linux....i have configured the samba server in the device such that my windows PC can access a shared folder in the device. Also in the device i am runnin some programs which access the files in this shared folder. What i want to know is whether there is any way i... (1 Reply)
Discussion started by: abhinx
1 Replies

3. Shell Programming and Scripting

Locking a script

Hello everyone Im sure this has been asked lots of times before, but after endless searching i cant find what i need. How can i make a bash script unreadable to all, including root, but still executable, im not worried about editing it again etc... , is there a way to convert it or something, i... (5 Replies)
Discussion started by: dave123
5 Replies

4. UNIX for Advanced & Expert Users

Locking issue

Hi everyone, I have got a requirement that, i need to check a specific folder,say /test/lock/ for few specific files, say *lock*, whether it has been locked or not.If any one of it is locked than i need to delete that file after a specific time, say after 10 minutes. I never have worked on... (4 Replies)
Discussion started by: Susant
4 Replies

5. Shell Programming and Scripting

locking mechanism

I have a shell script. How can use some kind of locking mechanism to ensure that the script is not being executed by two people at the same time? (3 Replies)
Discussion started by: tjay83
3 Replies

6. UNIX for Dummies Questions & Answers

how to do file locking?

how to ensure all files are being locked while updateing some files? example when i want to update the password and shadow file in unix. how do i implement file locking?? please advice thanks (2 Replies)
Discussion started by: yang
2 Replies

7. UNIX for Dummies Questions & Answers

file locking

how do i implement file locking in unix? example if i want to update a file, i would like to use file locking. how do i implement it? i am using shell script thanks (3 Replies)
Discussion started by: yang
3 Replies

8. UNIX for Dummies Questions & Answers

Keyboard keeps locking up

First off, let me start by saying that I am a total rookie when it comes to Unix so I will do my best to explain the situation. BACKGROUND:We are running AIX and using a third party Inventory Management software called Acclaim. My main interface terminal is just a "dummy" terminal hooked up to... (1 Reply)
Discussion started by: sstaszak11
1 Replies

9. UNIX for Dummies Questions & Answers

Locking in Unix?

Hi all! I want to know about Mapping Filesystems to Multiprocessor Systems.( lock ...) and Traditional UNIX Locking Primitives. Can you help me? (1 Reply)
Discussion started by: nguoidoius
1 Replies

10. UNIX for Advanced & Expert Users

File Locking

Hi, Does anyone know what happens when two processes are simultaneously trying to write to a single file in UNIX (AIX)? Cheers (1 Reply)
Discussion started by: penfold
1 Replies
Login or Register to Ask a Question
tapset::memory(3stap)													     tapset::memory(3stap)

NAME
tapset::memory - systemtap memory tapset DESCRIPTION
This family of probe points is used to probe memory-related events. vm_fault_contains Test return value for page fault reason See function::vm_fault_contains(3stap) for details. vm.pagefault Records that a page fault occurred See probe::vm.pagefault(3stap) for details. vm.pagefault.return Indicates what type of fault occurred See probe::vm.pagefault.return(3stap) for details. addr_to_node Returns which node a given address belongs to within a NUMA system See function::addr_to_node(3stap) for details. vm.write_shared Attempts at writing to a shared page See probe::vm.write_shared(3stap) for details. vm.write_shared_copy Page copy for shared page write See probe::vm.write_shared_copy(3stap) for details. vm.mmap Fires when an mmap is requested See probe::vm.mmap(3stap) for details. vm.munmap Fires when an munmap is requested See probe::vm.munmap(3stap) for details. vm.brk Fires when a brk is requested (i.e. the heap will be resized) See probe::vm.brk(3stap) for details. vm.oom_kill Fires when a thread is selected for termination by the OOM killer See probe::vm.oom_kill(3stap) for details. vm.kmalloc Fires when kmalloc is requested See probe::vm.kmalloc(3stap) for details. vm.kmem_cache_alloc Fires when kmem_cache_alloc is requested See probe::vm.kmem_cache_alloc(3stap) for details. vm.kmalloc_node Fires when kmalloc_node is requested See probe::vm.kmalloc_node(3stap) for details. vm.kmem_cache_alloc_node Fires when kmem_cache_alloc_node is requested See probe::vm.kmem_cache_alloc_node(3stap) for details. vm.kfree Fires when kfree is requested See probe::vm.kfree(3stap) for details. vm.kmem_cache_free Fires when kmem_cache_free is requested See probe::vm.kmem_cache_free(3stap) for details. SEE ALSO
function::vm_fault_contains(3stap), function::addr_to_node(3stap), probe::vm.pagefault(3stap), probe::vm.pagefault.return(3stap), probe::vm.write_shared(3stap), probe::vm.write_shared_copy(3stap), probe::vm.mmap(3stap), probe::vm.munmap(3stap), probe::vm.brk(3stap), probe::vm.oom_kill(3stap), probe::vm.kmalloc(3stap), probe::vm.kmem_cache_alloc(3stap), probe::vm.kmalloc_node(3stap), probe::vm.kmem_cache_alloc_node(3stap), probe::vm.kfree(3stap), probe::vm.kmem_cache_free(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::memory(3stap)