kernels/linux-2.4.0/drivers/md/lvm.c
/*
 * create a /proc entry for a physical volume
 */
create a /proc entry for a physical volume
create a / proc entry for a physical volume
inline void lvm_do_create_proc_entry_of_pv ( vg_t *vg_ptr, pv_t *pv_ptr) {
	char *basename;
	basename = strrchr(pv_ptr->pv_name, '/');
	if (basename == NULL) basename = pv_ptr->pv_name;
	else		      basename++;
	pde = create_proc_entry(basename, S_IFREG, vg_ptr->pv_subdir_pde);
	if ( pde != NULL) {
		pde->read_proc = lvm_proc_read_pv_info;
		pde->data = pv_ptr;
	}
}
inline void lvm_do_create_proc_entry_of_pv ( vg_t * vg_ptr , pv_t * pv_ptr ) { char * basename ; basename = strrchr ( pv_ptr -> pv_name , ' ' ) ; if ( basename == NULL ) basename = pv_ptr -> pv_name ; else basename ++ ; pde = create_proc_entry ( basename , S_IFREG , vg_ptr -> pv_subdir_pde ) ; if ( pde != NULL ) { pde -> read_proc = lvm_proc_read_pv_info ; pde -> data = pv_ptr ; } }
create a /proc entry for a physical volume
create a / proc entry for a physical volume